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-01-04 02:19:00 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-01-04 02:19:00 +0300
commitaa44a60c7833fa9f97776a37c37aef744154c1b0 (patch)
tree594077594139232d19bef7916d1fe867f07393a3 /test
parent46707d9dd5065a937807450c946a0d6591f4c5eb (diff)
Fix tests
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_xmpp_dispatcher_nb.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/test_xmpp_dispatcher_nb.py b/test/unit/test_xmpp_dispatcher_nb.py
index da7a7ab..8c4e49b 100644
--- a/test/unit/test_xmpp_dispatcher_nb.py
+++ b/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@test.at"><body>hello</body></message>')
self.assertEqual(1, len(msgs))
- self.dispatcher.ProcessNonBlocking('<message><x:y/></message>')
+ self.dispatcher.ProcessNonBlocking('<message from="test@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@test.at"><body>still here?</body></message>')
self.assertEqual(3, len(msgs))
def test_process_non_blocking(self):