Prevent noops in EventsRegisterTest.

We had a couple tests in EventsRegisterTest that weren't really
testing much, because they were going through codepaths with
authentication problems or actions that didn't affect our
user.  We now assert that the code under test generates
events.

(imported from commit c2f61180cb420d45fa95e137433e9456394bf0ff)
This commit is contained in:
Steve Howell 2014-02-02 09:32:25 -05:00
parent 662459b9e1
commit bf85a3cebc
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ class EventsRegisterTest(AuthedTestCase):
hybrid_state = fetch_initial_state_data(self.user_profile, event_types, "")
action()
events = client.event_queue.contents()
self.assertTrue(len(events) > 0)
apply_events(hybrid_state, events, self.user_profile)
normal_state = fetch_initial_state_data(self.user_profile, event_types, "")