diff options
Diffstat (limited to 'tests/test_stream_xep_0066.py')
-rw-r--r-- | tests/test_stream_xep_0066.py | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/tests/test_stream_xep_0066.py b/tests/test_stream_xep_0066.py index 175026d2..159333c7 100644 --- a/tests/test_stream_xep_0066.py +++ b/tests/test_stream_xep_0066.py @@ -1,10 +1,10 @@ import threading import unittest -from sleekxmpp.test import SleekTest +from slixmpp.test import SlixTest -class TestOOB(SleekTest): +class TestOOB(SlixTest): def tearDown(self): self.stream_close() @@ -13,21 +13,16 @@ class TestOOB(SleekTest): """Test sending an OOB transfer request.""" self.stream_start(plugins=['xep_0066', 'xep_0030']) - url = 'http://github.com/fritzy/SleekXMPP/blob/master/README' + url = 'http://github.com/fritzy/Slixmpp/blob/master/README' - t = threading.Thread( - name='send_oob', - target=self.xmpp['xep_0066'].send_oob, - args=('user@example.com', url), - kwargs={'desc': 'SleekXMPP README'}) - - t.start() + self.xmpp['xep_0066'].send_oob('user@example.com', url, + desc='Slixmpp README') self.send(""" <iq to="user@example.com" type="set" id="1"> <query xmlns="jabber:iq:oob"> - <url>http://github.com/fritzy/SleekXMPP/blob/master/README</url> - <desc>SleekXMPP README</desc> + <url>http://github.com/fritzy/Slixmpp/blob/master/README</url> + <desc>Slixmpp README</desc> </query> </iq> """) @@ -38,7 +33,5 @@ class TestOOB(SleekTest): from="user@example.com" /> """) - t.join() - suite = unittest.TestLoader().loadTestsFromTestCase(TestOOB) |