mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Fix stream test errors.
This commit is contained in:
parent
7ba6d5e02d
commit
e648f08bad
1 changed files with 4 additions and 2 deletions
|
@ -197,7 +197,10 @@ class SleekTest(unittest.TestCase):
|
||||||
"Stanza:\n%s" % str(stanza))
|
"Stanza:\n%s" % str(stanza))
|
||||||
else:
|
else:
|
||||||
stanza_class = stanza.__class__
|
stanza_class = stanza.__class__
|
||||||
|
if isinstance(criteria, str):
|
||||||
xml = self.parse_xml(criteria)
|
xml = self.parse_xml(criteria)
|
||||||
|
else:
|
||||||
|
xml = criteria.xml
|
||||||
|
|
||||||
# Ensure that top level namespaces are used, even if they
|
# Ensure that top level namespaces are used, even if they
|
||||||
# were not provided.
|
# were not provided.
|
||||||
|
@ -590,7 +593,6 @@ class SleekTest(unittest.TestCase):
|
||||||
sent = self.xmpp.socket.next_sent(timeout)
|
sent = self.xmpp.socket.next_sent(timeout)
|
||||||
if sent is None:
|
if sent is None:
|
||||||
return False
|
return False
|
||||||
print sent
|
|
||||||
xml = self.parse_xml(sent)
|
xml = self.parse_xml(sent)
|
||||||
self.fix_namespaces(xml, 'jabber:client')
|
self.fix_namespaces(xml, 'jabber:client')
|
||||||
sent = self.xmpp._build_stanza(xml, 'jabber:client')
|
sent = self.xmpp._build_stanza(xml, 'jabber:client')
|
||||||
|
|
Loading…
Reference in a new issue