tests: Fix send_message calls in test_soft_deactivation.py.

This commit is contained in:
Steve Howell 2017-10-28 09:12:03 -07:00 committed by Tim Abbott
parent 6475b25a00
commit fba754224c
1 changed files with 4 additions and 6 deletions

View File

@ -37,9 +37,8 @@ class UserSoftDeactivationTests(ZulipTestCase):
# We are sending this message to ensure that users have at least # We are sending this message to ensure that users have at least
# one UserMessage row. # one UserMessage row.
self.send_message(users[0].email, self.send_huddle_message(users[0].email,
[user.email for user in users], [user.email for user in users])
Recipient.HUDDLE)
do_soft_deactivate_users(users) do_soft_deactivate_users(users)
for user in users: for user in users:
@ -83,9 +82,8 @@ class UserSoftDeactivationTests(ZulipTestCase):
self.example_user('iago'), self.example_user('iago'),
self.example_user('cordelia'), self.example_user('cordelia'),
] ]
self.send_message(users[0].email, self.send_huddle_message(users[0].email,
[user.email for user in users], [user.email for user in users])
Recipient.HUDDLE)
do_soft_deactivate_users(users) do_soft_deactivate_users(users)
for user in users: for user in users:
self.assertTrue(user.long_term_idle) self.assertTrue(user.long_term_idle)