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="[email protected]"><body>hello</body></message>')
self.assertEqual(1, len(msgs))
- self.dispatcher.ProcessNonBlocking('<message><x:y/></message>')
+ self.dispatcher.ProcessNonBlocking('<message
from="[email protected]"><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="[email protected]"><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.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits