diff options
Diffstat (limited to 'tests/test_stream_xep_0050.py')
-rw-r--r-- | tests/test_stream_xep_0050.py | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/tests/test_stream_xep_0050.py b/tests/test_stream_xep_0050.py index e38c4add..6ebf88a9 100644 --- a/tests/test_stream_xep_0050.py +++ b/tests/test_stream_xep_0050.py @@ -2,11 +2,11 @@ import time import logging import unittest -from sleekxmpp.test import SleekTest -from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin +from slixmpp.test import SlixTest +from slixmpp.xmlstream import ElementBase, register_stanza_plugin -class TestAdHocCommands(SleekTest): +class TestAdHocCommands(SlixTest): def setUp(self): self.stream_start(mode='client', @@ -626,9 +626,6 @@ class TestAdHocCommands(SleekTest): </iq> """) - # Give the event queue time to process - time.sleep(0.3) - self.failUnless(results == ['foo', 'bar', 'baz'], 'Incomplete command workflow: %s' % results) @@ -692,9 +689,6 @@ class TestAdHocCommands(SleekTest): </iq> """) - # Give the event queue time to process - time.sleep(0.3) - self.failUnless(results == ['foo', 'bar'], 'Incomplete command workflow: %s' % results) @@ -733,9 +727,6 @@ class TestAdHocCommands(SleekTest): </iq> """) - # Give the event queue time to process - time.sleep(0.3) - self.failUnless(results == ['foo'], 'Incomplete command workflow: %s' % results) @@ -771,14 +762,8 @@ class TestAdHocCommands(SleekTest): </iq> """) - # Give the event queue time to process - time.sleep(0.3) - self.failUnless(results == ['foo'], 'Incomplete command workflow: %s' % results) - - - suite = unittest.TestLoader().loadTestsFromTestCase(TestAdHocCommands) |