Author: asterix Date: 2008-08-27 09:56:02 +0200 (Wed, 27 Aug 2008) New Revision: 10321
Modified: trunk/test/test_dispatcher_nb.py Log: fix dispatcher test. <x:y> in a message are not allowed
Modified: trunk/test/test_dispatcher_nb.py =================================================================== --- trunk/test/test_dispatcher_nb.py 2008-08-27 07:55:06 UTC (rev 10320) +++ trunk/test/test_dispatcher_nb.py 2008-08-27 07:56:02 UTC (rev 10321) @@ -42,12 +42,12 @@ 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()