summaryrefslogtreecommitdiff
path: root/sleekxmpp/test/sleektest.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-05-20 13:26:21 -0400
committerLance Stout <lancestout@gmail.com>2011-05-20 13:26:21 -0400
commite2de82ac8d45d2a6709154ef27dbeb3d08ce1a76 (patch)
treef1eba0699b6a3a2752cb04a6299ab5e8e5006574 /sleekxmpp/test/sleektest.py
parentf125c11a810cf308473394262879f94166c3f564 (diff)
parent9f1648328f17b608651989606b9cf2636cdcfbec (diff)
downloadslixmpp-e2de82ac8d45d2a6709154ef27dbeb3d08ce1a76.tar.gz
slixmpp-e2de82ac8d45d2a6709154ef27dbeb3d08ce1a76.tar.bz2
slixmpp-e2de82ac8d45d2a6709154ef27dbeb3d08ce1a76.tar.xz
slixmpp-e2de82ac8d45d2a6709154ef27dbeb3d08ce1a76.zip
Merge branch 'develop' into stream_features
Conflicts: sleekxmpp/clientxmpp.py
Diffstat (limited to 'sleekxmpp/test/sleektest.py')
-rw-r--r--sleekxmpp/test/sleektest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sleekxmpp/test/sleektest.py b/sleekxmpp/test/sleektest.py
index c5f48895..fd47a87e 100644
--- a/sleekxmpp/test/sleektest.py
+++ b/sleekxmpp/test/sleektest.py
@@ -600,8 +600,13 @@ class SleekTest(unittest.TestCase):
Defaults to the value of self.match_method.
"""
sent = self.xmpp.socket.next_sent(timeout)
+ if data is None and sent is None:
+ return
+ if data is None and sent is not None:
+ self.fail("Stanza data was sent: %s" % sent)
if sent is None:
self.fail("No stanza was sent.")
+
xml = self.parse_xml(sent)
self.fix_namespaces(xml, 'jabber:client')
sent = self.xmpp._build_stanza(xml, 'jabber:client')