Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test: Simplify test_multi_user_subscription.

Steve Howell09f5090d1f8e
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index ffcfda63fec..e835bbf123a 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -2509,8 +2509,7 @@ class SubscriptionAPITest(ZulipTestCase):
self.assert_length(events, 7)
for ev in [x for x in events if x['event']['type'] not in ('message', 'stream')]:
- if isinstance(ev['event']['subscriptions'][0], dict):
- self.assertEqual(ev['event']['op'], 'add')
+ if ev['event']['op'] == 'add':
self.assertEqual(
set(ev['event']['subscriptions'][0]['subscribers']),
{user1.id, user2.id},