Skip to content
Snippets Groups Projects
Commit 5b6da9fb authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix dispatcher test. <x:y> in a message are not allowed

parent 8a830338
No related branches found
No related tags found
Loading
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment