|
@@ -94,6 +94,11 @@ class PaginatorTests(TestCase):
|
|
|
(([1, 2], 1, 1, True), (2, 1, [1])),
|
|
|
(([1, 2, 3], 2, 1, True), (3, 1, [1])),
|
|
|
((eleven, 10, 1, True), (11, 1, [1])),
|
|
|
+ # Non-integer inputs
|
|
|
+ ((ten, '4', 1, False), (10, 3, [1, 2, 3])),
|
|
|
+ ((ten, u'4', 1, False), (10, 3, [1, 2, 3])),
|
|
|
+ ((ten, 4, '1', False), (10, 3, [1, 2, 3])),
|
|
|
+ ((ten, 4, u'1', False), (10, 3, [1, 2, 3])),
|
|
|
)
|
|
|
for params, output in tests:
|
|
|
self.check_paginator(params, output)
|