-
-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1451e4e
commit ad38c9f
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,9 +283,10 @@ def test_silence_notify(self): | |
def test_delete(self): | ||
rtip_descs = yield self.get_rtips() | ||
self.assertEqual(len(rtip_descs), self.population_of_submissions * self.population_of_recipients) | ||
|
||
receiver_name = '[email protected]' | ||
receiver = next((r for r in rtip_descs[0]['receivers'] if r['name'] == receiver_name), None) | ||
# we delete the first and then we verify that the second does not exist anymore | ||
handler = self.request(role='receiver', user_id=rtip_descs[0]['receiver_id']) | ||
handler = self.request(role='receiver', user_id=receiver['id']) | ||
yield handler.delete(rtip_descs[0]['id']) | ||
|
||
rtip_descs = yield self.get_rtips() | ||
|