Пример #1
0
 def test_model_gets_first_model(self):
     pdb = Pdb()
     pdb._models = ["1", "2", "3"]
     self.assertEqual(pdb.model, "1")
Пример #2
0
 def test_can_get_pdb_models(self):
     pdb = Pdb()
     pdb._models = ["1", "2", "3"]
     self.assertEqual(pdb.models, ("1", "2", "3"))
Пример #3
0
 def test_pdb_repr_multiple_models(self):
     pdb = Pdb()
     pdb._models = ["1", "2", "3"]
     self.assertEqual(str(pdb), "<Pdb (3 models)>")
Пример #4
0
 def test_pdb_repr_with_code(self):
     pdb = Pdb()
     pdb._code = "1XXX"
     pdb._models = ["1", "2", "3"]
     self.assertEqual(str(pdb), "<Pdb 1XXX (3 models)>")
Пример #5
0
 def test_pdb_repr_one_model(self):
     pdb = Pdb()
     pdb._models = ["1"]
     self.assertEqual(str(pdb), "<Pdb (1 model)>")