summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-02-22 10:08:35 -0800
committerLance Stout <lancestout@gmail.com>2013-02-22 10:08:35 -0800
commita1d71d31e85df2cf6efc835c30592126ca9861f2 (patch)
treef873e2610061011308f38baff46dac54316e11bb /tests
parent766e0b685d7d13adbcaa6e475c03b3ba96c196b2 (diff)
parent58f5e4702b143208bc80f8a507b358f2c2b1745d (diff)
downloadslixmpp-a1d71d31e85df2cf6efc835c30592126ca9861f2.tar.gz
slixmpp-a1d71d31e85df2cf6efc835c30592126ca9861f2.tar.bz2
slixmpp-a1d71d31e85df2cf6efc835c30592126ca9861f2.tar.xz
slixmpp-a1d71d31e85df2cf6efc835c30592126ca9861f2.zip
Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop
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.")