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('') - # 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('still here?') - self.assertEqual(2, len(msgs)) + self.assertEqual(1, len(msgs)) if __name__ == '__main__': unittest.main()