diff options
author | Lance Stout <lancestout@gmail.com> | 2011-05-31 11:05:54 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-05-31 11:05:54 -0700 |
commit | 83a73ac9b751f6403a43cb341460a46171e0908b (patch) | |
tree | c60877a9c6896bbefe8fcb51b606a20abac165ee /sleekxmpp/test/sleektest.py | |
parent | ccb0eeefbd58361283e4e92d75e5d17aa76c70c7 (diff) | |
parent | a81162edd2434756e21d7f9a79d71d770a43db7b (diff) | |
download | slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.gz slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.bz2 slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.tar.xz slixmpp-83a73ac9b751f6403a43cb341460a46171e0908b.zip |
Merge branch 'develop' into stream_features
Conflicts:
sleekxmpp/clientxmpp.py
Diffstat (limited to 'sleekxmpp/test/sleektest.py')
-rw-r--r-- | sleekxmpp/test/sleektest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sleekxmpp/test/sleektest.py b/sleekxmpp/test/sleektest.py index 24af1e7a..7802a9bc 100644 --- a/sleekxmpp/test/sleektest.py +++ b/sleekxmpp/test/sleektest.py @@ -259,6 +259,13 @@ class SleekTest(unittest.TestCase): # ------------------------------------------------------------------ # Methods for simulating stanza streams. + def stream_disconnect(self): + """ + Simulate a stream disconnection. + """ + if self.xmpp: + self.xmpp.socket.disconnect_error() + def stream_start(self, mode='client', skip=True, header=None, socket='mock', jid='tester@localhost', password='test', server='localhost', @@ -327,6 +334,8 @@ class SleekTest(unittest.TestCase): self.xmpp.process(threaded=True) if skip: if socket != 'live': + # Mark send queue as usable + self.xmpp.session_started_event.set() # Clear startup stanzas self.xmpp.socket.next_sent(timeout=1) if mode == 'component': |