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

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-08-27 11:56:02 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-08-27 11:56:02 +0400
commit5b6da9fbe010fca8c9b01dbfc47fa880b2ed75df (patch)
treefb99b2cc65d1bf625a972bf15d9032724e016339 /test/test_dispatcher_nb.py
parent8a83033816ee14df113762935bbfadb876b51a54 (diff)
fix dispatcher test. <x:y> in a message are not allowed
Diffstat (limited to 'test/test_dispatcher_nb.py')
-rw-r--r--test/test_dispatcher_nb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_dispatcher_nb.py b/test/test_dispatcher_nb.py
index 1bf9cb2c6..cfd90397c 100644
--- a/test/test_dispatcher_nb.py
+++ b/test/test_dispatcher_nb.py
@@ -42,12 +42,12 @@ class TestDispatcherNB(unittest.TestCase):
self.assertEqual(1, len(msgs))
d.ProcessNonBlocking('<message><x:y/></message>')
- # we should not have been disconnected after that message
- self.assertEqual(0, len(conn.mockGetNamedCalls('pollend')))
+ # we should have been disconnected after that message
+ self.assertEqual(1, len(conn.mockGetNamedCalls('pollend')))
- # we should be able to keep parsing
+ # we should not be able to keep parsing
d.ProcessNonBlocking('<message><body>still here?</body></message>')
- self.assertEqual(2, len(msgs))
+ self.assertEqual(1, len(msgs))
if __name__ == '__main__':
unittest.main()