diff options
author | Lance Stout <lancestout@gmail.com> | 2010-07-20 12:22:25 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-07-20 12:22:25 -0400 |
commit | 5c9b47afbdb79229d66378f9b9e1a601a3d58327 (patch) | |
tree | 26571c8a62063b17e5835bca2b0fe663648093d3 | |
parent | 7ad014368709873ed8ab760acc62264278f7723f (diff) | |
download | slixmpp-5c9b47afbdb79229d66378f9b9e1a601a3d58327.tar.gz slixmpp-5c9b47afbdb79229d66378f9b9e1a601a3d58327.tar.bz2 slixmpp-5c9b47afbdb79229d66378f9b9e1a601a3d58327.tar.xz slixmpp-5c9b47afbdb79229d66378f9b9e1a601a3d58327.zip |
Update test_events to use SleekTest to make everything consistent.
-rw-r--r-- | tests/test_events.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/test_events.py b/tests/test_events.py index 11821dbb..8f391e1d 100644 --- a/tests/test_events.py +++ b/tests/test_events.py @@ -1,14 +1,11 @@ -import unittest +import sleekxmpp +from sleektest import * -class testevents(unittest.TestCase): - def setUp(self): - import sleekxmpp.stanza.presence as p - self.p = p +class TestEvents(SleekTest): def testEventHappening(self): "Test handler working" - import sleekxmpp c = sleekxmpp.ClientXMPP('crap@wherever', 'password') happened = [] def handletestevent(event): @@ -20,7 +17,6 @@ class testevents(unittest.TestCase): def testDelEvent(self): "Test handler working, then deleted and not triggered" - import sleekxmpp c = sleekxmpp.ClientXMPP('crap@wherever', 'password') happened = [] def handletestevent(event): @@ -32,4 +28,4 @@ class testevents(unittest.TestCase): self.failUnless(happened == [True], "event did not get triggered the correct number of times") -suite = unittest.TestLoader().loadTestsFromTestCase(testevents) +suite = unittest.TestLoader().loadTestsFromTestCase(TestEvents) |