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

This commit is contained in:
Yann Leboulanger 2008-08-27 07:56:02 +00:00
parent 8a83033816
commit 5b6da9fbe0
1 changed files with 4 additions and 4 deletions

View File

@ -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()