Add tests for stream deletion.

(imported from commit bfe52c6c5be3fc36907071f9ff096cf74aa9fb22)
This commit is contained in:
Jessica McKellar
2014-01-29 12:54:48 -05:00
parent 7085dca1ce
commit da3fc3fede
2 changed files with 101 additions and 1 deletions

View File

@@ -203,7 +203,7 @@ class AuthedTestCase(TestCase):
realm = Realm.objects.get(domain=realm_domain)
stream = Stream.objects.get(name=stream_name, realm=realm)
recipient = Recipient.objects.get(type_id=stream.id, type=Recipient.STREAM)
subscriptions = Subscription.objects.filter(recipient=recipient)
subscriptions = Subscription.objects.filter(recipient=recipient, active=True)
return [subscription.user_profile for subscription in subscriptions]