def test_atom_to_site(self):
    cell = UnitCell(35.996, 41.601, 45.756, 67.4, 66.9, 74.85)
    atom = gemmi.Atom()
    atom.aniso = gemmi.SMat33f(13.1, 20.1, 11.1, (- 3.5), 5.5, (- 0.4))
    site = gemmi.SmallStructure.Site(atom, cell)
    ucif = [11.537759976524049, 19.43436271641311, 11.1, (- 8.078683096677723), 1.4787260755519491, (- 3.9018967241279157)]
    for (a, b) in zip(site.aniso.elements(), ucif):
        self.assertAlmostEqual(a, b, delta=1e-06)
def test_atom_to_site(self):
    cell = UnitCell(35.996, 41.601, 45.756, 67.4, 66.9, 74.85)
    atom = gemmi.Atom()
    atom.aniso = gemmi.SMat33f(13.1, 20.1, 11.1, (- 3.5), 5.5, (- 0.4))
    site = gemmi.SmallStructure.Site(atom, cell)
    ucif = [11.537759976524049, 19.43436271641311, 11.1, (- 8.078683096677723), 1.4787260755519491, (- 3.9018967241279157)]
    for (a, b) in zip(site.aniso.elements(), ucif):
        self.assertAlmostEqual(a, b, delta=1e-06)