0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
This commit is contained in:
Matt Westcott 2016-10-03 18:34:52 +01:00
parent 561f0a7cff
commit 0ba56b5d58

View File

@ -67,13 +67,13 @@ class TestImageIndexView(TestCase, WagtailTestUtils):
# prev link should exist and include collection_id # prev link should exist and include collection_id
self.assertTrue( self.assertTrue(
("?p=1&collection_id=%i" % evil_plans_collection.id) in response_body ("?p=1&collection_id=%i" % evil_plans_collection.id) in response_body or
or ("?collection_id=%i&p=1" % evil_plans_collection.id) in response_body ("?collection_id=%i&p=1" % evil_plans_collection.id) in response_body
) )
# next link should exist and include collection_id # next link should exist and include collection_id
self.assertTrue( self.assertTrue(
("?p=3&collection_id=%i" % evil_plans_collection.id) in response_body ("?p=3&collection_id=%i" % evil_plans_collection.id) in response_body or
or ("?collection_id=%i&p=3" % evil_plans_collection.id) in response_body ("?collection_id=%i&p=3" % evil_plans_collection.id) in response_body
) )
def test_ordering(self): def test_ordering(self):