From 84683323812a7aecb2f2abc69272d714f69b23bb Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 14 Oct 2010 15:53:10 -0700 Subject: [PATCH] fixed stream tests --- sleekxmpp/test/sleektest.py | 6 +++--- 1 file 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: