Пример #1
0
 def test_can_get_name(self):
     res = Residue(self.atom1, self.atom2, self.atom3)
     self.assertIsNone(res.full_name)
     res._name = "XMP"
     self.assertEqual(res.full_name, "XMP")
Пример #2
0
 def test_can_lookup_full_name(self):
     res = Residue(self.atom1, self.atom2, self.atom3)
     res._name = "met"
     self.assertEqual(res.full_name, "methionine")
Пример #3
0
 def test_molecule_repr_name_no_id(self):
     res = Residue(self.atom1, self.atom2, self.atom3)
     res._name = "GLY"
     self.assertEqual(str(res), "<Residue (GLY, 3 atoms)>")