summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThom Nichols <tmnichols@gmail.com>2010-06-07 14:41:42 -0400
committerThom Nichols <tmnichols@gmail.com>2010-06-07 14:41:42 -0400
commit34dc236126d272a16df0915b010dca0e2e38f0d4 (patch)
treebf856b56b5569de82d2807487130321039b75b4a /tests
parent9464736551311c015f1511e7535c762923838eaf (diff)
downloadslixmpp-34dc236126d272a16df0915b010dca0e2e38f0d4.tar.gz
slixmpp-34dc236126d272a16df0915b010dca0e2e38f0d4.tar.bz2
slixmpp-34dc236126d272a16df0915b010dca0e2e38f0d4.tar.xz
slixmpp-34dc236126d272a16df0915b010dca0e2e38f0d4.zip
added documentation for transition_ctx and removed some superfluous comment lines
Diffstat (limited to 'tests')
-rw-r--r--tests/test_statemachine.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/test_statemachine.py b/tests/test_statemachine.py
index 00e4d3a3..e44b8e48 100644
--- a/tests/test_statemachine.py
+++ b/tests/test_statemachine.py
@@ -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') )