diff options
author | Lance Stout <lancestout@gmail.com> | 2013-02-25 09:53:35 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2013-02-25 09:53:35 -0800 |
commit | 82bbe5d1a67613d5e1a23bec4260b9e6644d339b (patch) | |
tree | 2d7a61c4f64afc7485e5a6ae71b0fe972ab8d1e4 /tests/test_stream_handlers.py | |
parent | 9a45ebd98bb03120f1eca3945eaa8777abe8ece0 (diff) | |
parent | a1d71d31e85df2cf6efc835c30592126ca9861f2 (diff) | |
download | slixmpp-82bbe5d1a67613d5e1a23bec4260b9e6644d339b.tar.gz slixmpp-82bbe5d1a67613d5e1a23bec4260b9e6644d339b.tar.bz2 slixmpp-82bbe5d1a67613d5e1a23bec4260b9e6644d339b.tar.xz slixmpp-82bbe5d1a67613d5e1a23bec4260b9e6644d339b.zip |
Merge branch 'develop'
Diffstat (limited to 'tests/test_stream_handlers.py')
-rw-r--r-- | tests/test_stream_handlers.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_stream_handlers.py b/tests/test_stream_handlers.py index d3850a94..183e4bf9 100644 --- a/tests/test_stream_handlers.py +++ b/tests/test_stream_handlers.py @@ -21,7 +21,7 @@ class TestHandlers(SleekTest): """Test using stream callback handlers.""" def callback_handler(stanza): - self.xmpp.sendRaw(""" + self.xmpp.send_raw(""" <message> <body>Success!</body> </message> @@ -31,7 +31,7 @@ class TestHandlers(SleekTest): MatchXPath('{test}tester'), callback_handler) - self.xmpp.registerHandler(callback) + self.xmpp.register_handler(callback) self.recv("""<tester xmlns="test" />""") @@ -49,7 +49,7 @@ class TestHandlers(SleekTest): iq['query'] = 'test' reply = iq.send(block=True) if reply: - self.xmpp.sendRaw(""" + self.xmpp.send_raw(""" <message> <body>Successful: %s</body> </message> @@ -112,7 +112,7 @@ class TestHandlers(SleekTest): time.sleep(0.1) # Check that the waiter is no longer registered - waiter_exists = self.xmpp.removeHandler('IqWait_test2') + waiter_exists = self.xmpp.remove_handler('IqWait_test2') self.failUnless(waiter_exists == False, "Waiter handler was not removed.") |