[Git][gajim/python-nbxmpp][master] Fix tests

Philipp Hörist gitlab at dev.gajim.org
Fri Jan 4 00:19:10 CET 2019


Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
aa44a60c by Philipp Hörist at 2019-01-03T23:19:00Z
Fix tests

- - - - -


1 changed file:

- test/unit/test_xmpp_dispatcher_nb.py


Changes:

=====================================
test/unit/test_xmpp_dispatcher_nb.py
=====================================
@@ -47,17 +47,17 @@ class TestDispatcherNB(unittest.TestCase):
         self.dispatcher.RegisterHandler('message', _got_message)
 
         # should be able to parse a normal message
-        self.dispatcher.ProcessNonBlocking('<message><body>hello</body></message>')
+        self.dispatcher.ProcessNonBlocking('<message from="test at test.at"><body>hello</body></message>')
         self.assertEqual(1, len(msgs))
 
-        self.dispatcher.ProcessNonBlocking('<message><x:y/></message>')
+        self.dispatcher.ProcessNonBlocking('<message from="test at test.at"><x:y/></message>')
         self.assertEqual(2, len(msgs))
         # we should not have been disconnected after that message
         self.con.pollend.assert_not_called()
         self.con.disconnect.assert_not_called()
 
         # we should be able to keep parsing
-        self.dispatcher.ProcessNonBlocking('<message><body>still here?</body></message>')
+        self.dispatcher.ProcessNonBlocking('<message from="test at test.at"><body>still here?</body></message>')
         self.assertEqual(3, len(msgs))
 
     def test_process_non_blocking(self):



View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/aa44a60c7833fa9f97776a37c37aef744154c1b0

-- 
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/aa44a60c7833fa9f97776a37c37aef744154c1b0
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190104/879bf1de/attachment.html>


More information about the Commits mailing list