summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnton Ryzhov <anton@ryzhov.me>2013-02-22 01:48:03 +0400
committerAnton Ryzhov <anton@ryzhov.me>2013-02-22 01:48:03 +0400
commitd9906756cfc546bd182688fdcaeb0aa8fe96e6dd (patch)
treecdb944a57b37d37854329bf9a682a0356fa48368 /tests
parent8c763fcf43b2690c4f02a9f577fc2d6d72917ee2 (diff)
downloadslixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.tar.gz
slixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.tar.bz2
slixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.tar.xz
slixmpp-d9906756cfc546bd182688fdcaeb0aa8fe96e6dd.zip
Don't use internally deprecated methods
Diffstat (limited to 'tests')
-rw-r--r--tests/test_stream_handlers.py8
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.")