AlertWordTests: Cleanup confusing message variable reuse.

This commit is contained in:
Tim Abbott 2016-06-15 14:50:52 -07:00
parent 16a19226f6
commit 45883386ce
1 changed files with 2 additions and 2 deletions

View File

@ -1347,8 +1347,8 @@ class AlertWordTests(AuthedTestCase):
def message_does_alert(self, user_profile, message):
# Send a bunch of messages as othello, so Hamlet is notified
self.send_message("othello@zulip.com", "Denmark", Recipient.STREAM, message)
message = most_recent_usermessage(user_profile)
return 'has_alert_word' in message.flags_list()
user_message = most_recent_usermessage(user_profile)
return 'has_alert_word' in user_message.flags_list()
def test_alert_flags(self):
self.login("hamlet@zulip.com")