Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
test_Pathway.ReactionTestCase Class Reference

List of all members.

Public Member Functions

def setUp
def testEq
def testRev

Public Attributes

 r_empty
 r_prod
 r_dest
 r_1
 r_1i
 r_2
 r_3
 r_4

Detailed Description

Definition at line 149 of file test_Pathway.py.


Member Function Documentation

Definition at line 151 of file test_Pathway.py.

00151 
00152     def setUp(self):
00153         self.r_empty = Reaction()
00154         self.r_prod = Reaction({"a":1})
00155         self.r_dest = Reaction({"a":-1})
00156         self.r_1 = Reaction({"a":-1, "b":1})
00157         self.r_1i = Reaction({"a":-1, "b":1, "c":0})
00158         self.r_2 = Reaction({"b":-1, "c":1})
00159         self.r_3 = Reaction({"a":-1, "d":2})
00160         self.r_4 = Reaction({"c":-1, "d":-1, "a":1, "e":2})

Definition at line 161 of file test_Pathway.py.

00161 
00162     def testEq(self):
00163         self.assertEqual(self.r_1, self.r_1i) #, "not equal to similar")
00164         self.assertNotEqual(self.r_3, self.r_4) #, "equal to different")
        

Definition at line 165 of file test_Pathway.py.

00165 
00166     def testRev(self):
00167         self.assertEqual(self.r_empty.reverse(), self.r_empty, "empty reversed not empty")
00168         self.assertEqual(self.r_prod.reverse(), self.r_dest,
00169                           "reversed reaction not equal to similar")
00170         self.assertEqual(self.r_4.reverse(), Reaction({"c":1, "d":1, "a":-1, "e":-2}),
00171                          "reversed reaction not equal to similar")
00172         self.assertEqual(self.r_3.reverse().reverse(), self.r_3,
00173                           "double reversal not identity")
00174     


Member Data Documentation

Definition at line 155 of file test_Pathway.py.

Definition at line 156 of file test_Pathway.py.

Definition at line 157 of file test_Pathway.py.

Definition at line 158 of file test_Pathway.py.

Definition at line 159 of file test_Pathway.py.

Definition at line 154 of file test_Pathway.py.

Definition at line 152 of file test_Pathway.py.

Definition at line 153 of file test_Pathway.py.


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