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-09-27 18:26:50 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-09-27 18:26:50 +0400
commit3d46bf0b6eb0c61a4436740b4791692dcecfd528 (patch)
tree15916ee76287229b645e4c04079a85cfb2814dd1 /test/test_dispatcher_nb.py
parent5da238ee547500abdec0a4b9d95a734bcac25765 (diff)
[dwd] fix reconnection when we get wrong XML with undeclared namespaces. Fixes #3083
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 cfd90397c..45402f66b 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 have been disconnected after that message
- self.assertEqual(1, len(conn.mockGetNamedCalls('pollend')))
+ # we should not have been disconnected after that message
+ self.assertEqual(0, len(conn.mockGetNamedCalls('pollend')))
- # we should not be able to keep parsing
+ # we should be able to keep parsing
d.ProcessNonBlocking('<message><body>still here?</body></message>')
- self.assertEqual(1, len(msgs))
+ self.assertEqual(3, len(msgs))
if __name__ == '__main__':
unittest.main()