added documentation for transition_ctx and removed some superfluous comment lines

This commit is contained in:
Thom Nichols
2010-06-07 14:41:42 -04:00
parent 9464736551
commit 34dc236126
2 changed files with 26 additions and 5 deletions

View File

@@ -15,9 +15,7 @@ class testStateMachine(unittest.TestCase):
def testDefaults(self):
"Test ensure transitions occur correctly in a single thread"
s = sm.StateMachine(('one','two','three'))
# self.assertTrue(s.one)
self.assertTrue(s['one'])
# self.failIf(s.two)
self.failIf(s['two'])
try:
s['booga']
@@ -31,12 +29,9 @@ class testStateMachine(unittest.TestCase):
def testTransitions(self):
"Test ensure transitions occur correctly in a single thread"
s = sm.StateMachine(('one','two','three'))
# self.assertTrue(s.one)
self.assertTrue( s.transition('one', 'two') )
# self.assertTrue( s.two )
self.assertTrue( s['two'] )
# self.failIf( s.one )
self.failIf( s['one'] )
self.assertTrue( s.transition('two', 'three') )