summaryrefslogtreecommitdiff
path: root/tests/api_test.py
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2010-01-08 12:39:10 -0800
committerRyan Williams <rdw@lindenlab.com>2010-01-08 12:39:10 -0800
commitd33bb039e22f13e009eecc0557be7d1c4789c951 (patch)
tree1dad50568bfd4fdda48e5bd67aba1ba97eaef7d1 /tests/api_test.py
parenta868b1c857e43d538e3d613919df67f49b846eb8 (diff)
downloadeventlet-d33bb039e22f13e009eecc0557be7d1c4789c951.tar.gz
Added silent timer support to pyevent hub, upgraded api_test to use actual unit test primitives rather than inventing its own.
Diffstat (limited to 'tests/api_test.py')
-rw-r--r--tests/api_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/api_test.py b/tests/api_test.py
index 3e29cfe..343293d 100644
--- a/tests/api_test.py
+++ b/tests/api_test.py
@@ -210,12 +210,12 @@ class TestApi(TestCase):
state.append('finished')
g = api.spawn(test)
api.sleep(DELAY/2)
- assert state == ['start'], state
+ self.assertEquals(state, ['start'])
api.kill(g)
# will not get there, unless switching is explicitly scheduled by kill
- assert state == ['start', 'except'], state
+ self.assertEquals(state,['start', 'except'])
api.sleep(DELAY)
- assert state == ['start', 'except', 'finished'], state
+ self.assertEquals(state, ['start', 'except', 'finished'])
def test_nested_with_timeout(self):
def func():