Added page_links check to limit=0 pagination test

This commit is contained in:
Nick Horelik 2015-09-24 23:09:38 +00:00
parent 0429201ddb
commit 145e240969

View File

@ -495,6 +495,9 @@ class TestLimitOffset:
next_url = 'http://testserver/?limit={0}&offset={1}'.format(next_limit, next_offset)
assert queryset == []
assert content.get('next') == next_url
assert context.get('page_links')[0] == \
PageLink('http://testserver/?limit={0}'.format(next_limit), 1, True, False)
class TestCursorPagination: