test_events: Use a better assertion when comparing event count.

This commit is contained in:
Tim Abbott
2018-12-06 17:38:10 -08:00
parent 7e6f30caab
commit 5c2e7a169f

View File

@@ -503,7 +503,7 @@ class EventsRegisterTest(ZulipTestCase):
)
action()
events = client.event_queue.contents()
self.assertTrue(len(events) == num_events)
self.assertEqual(len(events), num_events)
before = ujson.dumps(hybrid_state)
apply_events(hybrid_state, events, self.user_profile,