From 45883386ce1760307a26ba76fe6677055d9b9c22 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 15 Jun 2016 14:50:52 -0700 Subject: [PATCH] AlertWordTests: Cleanup confusing message variable reuse. --- zerver/tests/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/tests/tests.py b/zerver/tests/tests.py index db6a98b5b9..91b8eb131d 100644 --- a/zerver/tests/tests.py +++ b/zerver/tests/tests.py @@ -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")