def test_basic_isochizomers(self): """Test to be sure isochizomer and neoschizomers are as expected. """ self.assertEqual(Acc65I.isoschizomers(), [Asp718I, KpnI]) self.assertEqual(Acc65I.elucidate(), 'G^GTAC_C') self.assertEqual(Asp718I.elucidate(), 'G^GTAC_C') self.assertEqual(KpnI.elucidate(), 'G_GTAC^C')
def test_basic_isochizomers(self): """Test to be sure isochizomer and neoschizomers are as expected.""" self.assertEqual(Acc65I.isoschizomers(), [Asp718I, KpnI]) self.assertEqual(Acc65I.elucidate(), 'G^GTAC_C') self.assertEqual(Asp718I.elucidate(), 'G^GTAC_C') self.assertEqual(KpnI.elucidate(), 'G_GTAC^C') self.assertTrue(Acc65I.is_isoschizomer(KpnI)) self.assertFalse(Acc65I.is_equischizomer(KpnI)) self.assertTrue(Acc65I.is_neoschizomer(KpnI)) self.assertIn(Acc65I, Asp718I.equischizomers()) self.assertIn(KpnI, Asp718I.neoschizomers()) self.assertIn(KpnI, Acc65I.isoschizomers())