test_alert_words: Use better variable names.

This commit is contained in:
Tim Abbott 2020-04-18 16:15:11 -07:00
parent da6a295f17
commit 43241250b6
1 changed files with 3 additions and 4 deletions

View File

@ -63,16 +63,15 @@ class AlertWordTests(ZulipTestCase):
"""
user = self.example_user('cordelia')
expected_remaining_alerts = set(self.interesting_alert_word_list)
add_user_alert_words(user, self.interesting_alert_word_list)
theoretical_remaining_alerts = self.interesting_alert_word_list[:]
for alert_word in self.interesting_alert_word_list:
remove_user_alert_words(user, alert_word)
theoretical_remaining_alerts.remove(alert_word)
expected_remaining_alerts.remove(alert_word)
actual_remaining_alerts = user_alert_words(user)
self.assertEqual(set(actual_remaining_alerts),
set(theoretical_remaining_alerts))
expected_remaining_alerts)
def test_realm_words(self) -> None:
"""