def test_ChainCollection_add_exception_2(self): antibody_chothia = ChainCollection.load_from_file( path='./tests/Data/chain_collection_fasta_test.fasta', numbering_scheme='chothia', show_progressbar=False, verbose=False) antibody_kabat = Chain(sequence=read_sequence( './tests/Data/chain_collection_fasta_test.fasta'), numbering_scheme='kabat') antibody_kabat.load() self.assertRaises(ValueError, operator.add, antibody_chothia, antibody_kabat)
def test_ChainCollection_add_exception_2(self): # check if adding two ChainCollection objects with one sequence each # results in a ChainCollection object with two sequences antibody_chothia = ChainCollection( path='./tests/Data/chain_collection_fasta_test.fasta', numbering_scheme='chothia') antibody_chothia.load(show_progressbar=False, verbose=False) antibody_kabat = Chain(sequence=read_sequence( './tests/Data/chain_collection_fasta_test.fasta'), numbering_scheme='kabat') antibody_kabat.load() self.assertRaises(ValueError, operator.add, antibody_chothia, antibody_kabat)
def test_ChainCollection_chain_2(self): # checks if the chain type is read properly from a Chain object test_chain = Chain(sequence=self.chain_test_sequence) test_chain.load() test_collection = ChainCollection(antibody_objects=[test_chain]) self.assertEqual(test_collection.chain, 'heavy')
def test_Chain_unnumbered_sequene(self): test_seq = Chain(sequence='TEST') test_seq.load() self.assertEqual(test_seq.status, 'Unnumbered')
def test_Chain_load(self): chain = Chain(sequence=self.test_sequence) chain.load() self.assertIsInstance(chain, Chain)