test_subs.py: Change assert_max_length to assert_length.

This commit is contained in:
Umair Khan 2017-03-22 15:46:06 +05:00 committed by Tim Abbott
parent 804c62045f
commit 3c0f341eb7
1 changed files with 4 additions and 4 deletions

View File

@ -1498,7 +1498,7 @@ class SubscriptionAPITest(ZulipTestCase):
streams_to_sub,
dict(principals=ujson.dumps([email1, email2])),
)
self.assert_max_length(queries, 52)
self.assert_length(queries, 52)
self.assert_length(events, 8)
for ev in [x for x in events if x['event']['type'] not in ('message', 'stream')]:
@ -1526,7 +1526,7 @@ class SubscriptionAPITest(ZulipTestCase):
streams_to_sub,
dict(principals=ujson.dumps([self.test_email])),
)
self.assert_max_length(queries, 13)
self.assert_length(queries, 13)
self.assert_length(events, 2)
add_event, add_peer_event = events
@ -1744,7 +1744,7 @@ class SubscriptionAPITest(ZulipTestCase):
# Make sure Zephyr mirroring realms such as MIT do not get
# any tornado subscription events
self.assert_length(events, 0)
self.assert_max_length(queries, 8)
self.assert_length(queries, 8)
def test_bulk_subscribe_many(self):
# type: () -> None
@ -1761,7 +1761,7 @@ class SubscriptionAPITest(ZulipTestCase):
dict(principals=ujson.dumps([self.test_email])),
)
# Make sure we don't make O(streams) queries
self.assert_max_length(queries, 14)
self.assert_length(queries, 14)
@slow("common_subscribe_to_streams is slow")
def test_subscriptions_add_for_principal(self):