Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-02-09 23:55:01 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-02-09 23:55:01 +0300
commitee45ce4a91240aab898c0151b1094e7bb99f108c (patch)
tree537048c91afc94d7528e55b72a09d43d9142ed20 /test
parent622a456648aaef22fb73a3033cb54bc0657f0b16 (diff)
Fix test
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_xmpp_dispatcher_nb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/test_xmpp_dispatcher_nb.py b/test/unit/test_xmpp_dispatcher_nb.py
index 8c4e49b..8b7d528 100644
--- a/test/unit/test_xmpp_dispatcher_nb.py
+++ b/test/unit/test_xmpp_dispatcher_nb.py
@@ -88,7 +88,8 @@ class TestDispatcherNB(unittest.TestCase):
self._simulate_connect()
stanza = "<iq type='get' />"
def send(data):
- self.assertEqual(lib.xml2str_sorted(data), '<iq xmlns="jabber:client" type="error"><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The feature requested is not implemented by the recipient or server and therefore cannot be processed.</text></error></iq>')
+ print(lib.xml2str_sorted(data))
+ self.assertEqual(lib.xml2str_sorted(data), '<iq xmlns="jabber:client" from="test@test.test" to="test@test.test" type="error"><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">The feature requested is not implemented by the recipient or server and therefore cannot be processed.</text></error></iq>')
self.client.send = send
self.dispatcher.ProcessNonBlocking(stanza)