Ejemplo n.º 1
0
 def test_ChainCollection_get_object_1(self):
     # check if get_object returns a Chain object
     antibody_collection_1 = ChainCollection(
         path='./tests/Data/chain_collection_1_heavy.json')
     antibody_collection_1.load(show_progressbar=False, verbose=False)
     self.assertIsInstance(antibody_collection_1.get_object('test'), Chain)
Ejemplo n.º 2
0
 def test_ChainCollection_get_object_2(self):
     # check if get_object returns a Chain object and keeps the information (i.e. name)
     antibody_collection_1 = ChainCollection(
         path='./tests/Data/chain_collection_1_heavy.json')
     antibody_collection_1.load(show_progressbar=False, verbose=False)
     self.assertEqual(antibody_collection_1.get_object('test').name, 'test')
Ejemplo n.º 3
0
 def test_ChainCollection_slicing(self):
     antibody_collection_1 = ChainCollection(
         path='./tests/Data/chain_collection_1_heavy.json')
     antibody_collection_1.load(show_progressbar=False, verbose=False)
     self.assertIsInstance(antibody_collection_1.get_object('test'), Chain)