mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
fixed stream tests
This commit is contained in:
parent
dc001bb201
commit
8468332381
1 changed files with 3 additions and 3 deletions
|
@ -281,9 +281,9 @@ class SleekTest(unittest.TestCase):
|
||||||
self.xmpp.set_socket(TestSocket())
|
self.xmpp.set_socket(TestSocket())
|
||||||
|
|
||||||
# Simulate connecting for mock sockets.
|
# Simulate connecting for mock sockets.
|
||||||
self.xmpp.state.set('reconnect', False)
|
self.xmpp.auto_reconnect = False
|
||||||
self.xmpp.state.set('is client', True)
|
self.xmpp.is_client = True
|
||||||
self.xmpp.state.set('connected', True)
|
self.xmpp.state._set_state('connected')
|
||||||
|
|
||||||
# Must have the stream header ready for xmpp.process() to work.
|
# Must have the stream header ready for xmpp.process() to work.
|
||||||
if not header:
|
if not header:
|
||||||
|
|
Loading…
Reference in a new issue