'We can gather alert words for an entire realm via
alert_words_in_realm. Alerts added for one user do not impact other
users.'

def test_realm_words(self):

    user1 = self.example_user('cordelia')
    add_user_alert_words(user1, self.interesting_alert_word_list)
    user2 = self.example_user('othello')
    add_user_alert_words(user2, ['another'])
    realm_words = alert_words_in_realm(user2.realm)
    self.assertEqual(len(realm_words), 2)
    self.assertEqual(list(realm_words.keys()), [user1.id, user2.id])
    self.assertEqual(realm_words[user1.id], self.interesting_alert_word_list)
    self.assertEqual(realm_words[user2.id], ['another'])
