summaryrefslogtreecommitdiff
path: root/sleekxmpp/test/sleektest.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-10-14 15:53:10 -0700
committerNathan Fritz <nathan@andyet.net>2010-10-14 15:53:10 -0700
commit84683323812a7aecb2f2abc69272d714f69b23bb (patch)
tree4b8fa0fd18745475186a37060343594aa99025bb /sleekxmpp/test/sleektest.py
parentdc001bb201268c5443c1be2a937d02a0c96ad4bb (diff)
downloadslixmpp-84683323812a7aecb2f2abc69272d714f69b23bb.tar.gz
slixmpp-84683323812a7aecb2f2abc69272d714f69b23bb.tar.bz2
slixmpp-84683323812a7aecb2f2abc69272d714f69b23bb.tar.xz
slixmpp-84683323812a7aecb2f2abc69272d714f69b23bb.zip
fixed stream tests
Diffstat (limited to 'sleekxmpp/test/sleektest.py')
-rw-r--r--sleekxmpp/test/sleektest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/test/sleektest.py b/sleekxmpp/test/sleektest.py
index 9b822343..fa53bf73 100644
--- a/sleekxmpp/test/sleektest.py
+++ b/sleekxmpp/test/sleektest.py
@@ -281,9 +281,9 @@ class SleekTest(unittest.TestCase):
self.xmpp.set_socket(TestSocket())
# Simulate connecting for mock sockets.
- self.xmpp.state.set('reconnect', False)
- self.xmpp.state.set('is client', True)
- self.xmpp.state.set('connected', True)
+ self.xmpp.auto_reconnect = False
+ self.xmpp.is_client = True
+ self.xmpp.state._set_state('connected')
# Must have the stream header ready for xmpp.process() to work.
if not header: