def test_get_seq(self): '''Tests get_seq method.''' dna = _read('sbol.xml') ice_entry = ICEEntry(typ='PLASMID', dna=dna) self.__ice_client.set_ice_entry(ice_entry) ice_entry = self.__ice_client.get_ice_entry(ice_entry.get_ice_id()) self.assertEqual(ice_entry.get_seq(), dna['seq'])
def test_set_dna(self): '''Tests set_dna method.''' dna1 = _read('sbol.xml') dna2 = _read('sbol2.xml') ice_entry = ICEEntry(typ='PLASMID', dna=dna1) self.__ice_client.set_ice_entry(ice_entry) ice_entry.set_dna(dna2) self.__ice_client.set_ice_entry(ice_entry) self.assertEqual(ice_entry.get_seq(), dna2['seq'])