Back to index

python-biopython  1.60
Public Member Functions
test_Restriction.EnzymeComparison Class Reference

List of all members.

Public Member Functions

def test_basic_isochizomers
def test_comparisons

Detailed Description

Tests for comparing various enzymes.

Definition at line 44 of file test_Restriction.py.


Member Function Documentation

Test to be sure isochizomer and neoschizomers are as expected.

Definition at line 47 of file test_Restriction.py.

00047 
00048     def test_basic_isochizomers(self):
00049         """Test to be sure isochizomer and neoschizomers are as expected.
00050         """
00051         self.assertEqual(Acc65I.isoschizomers(), [Asp718I, KpnI])
00052         self.assertEqual(Acc65I.elucidate(), 'G^GTAC_C')
00053         self.assertEqual(Asp718I.elucidate(), 'G^GTAC_C')
00054         self.assertEqual(KpnI.elucidate(), 'G_GTAC^C')

Comparison operators between iso and neoschizomers.

Definition at line 55 of file test_Restriction.py.

00055 
00056     def test_comparisons(self):
00057         """Comparison operators between iso and neoschizomers.
00058         """
00059         self.assertEqual(Acc65I, Acc65I)
00060         self.assertNotEqual(Acc65I, KpnI)
00061         self.assertFalse(Acc65I == Asp718I)
00062         self.assertFalse(Acc65I != Asp718I)
00063         self.assertNotEqual(Acc65I, EcoRI)
00064 
00065         self.assertTrue(Acc65I >> KpnI)
00066         self.assertFalse(Acc65I >> Asp718I)
00067 
00068         self.assertTrue(Acc65I % Asp718I)
00069         self.assertTrue(Acc65I % Acc65I)
00070         self.assertFalse(Acc65I % KpnI)
00071 


The documentation for this class was generated from the following file: