diff options
| author | Rigel Di Scala <rigel.discala@propylon.com> | 2015-06-06 20:24:02 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-03 11:34:34 -0400 |
| commit | b91a2a499fd562011fd275238924baa6002fb1f8 (patch) | |
| tree | d6bd663e6a351b5b87f87223bf98b804026089a4 /tests | |
| parent | fd869cceacafdaf2c5865cc525f88357b6a26aad (diff) | |
Fixed #23190 -- Made Paginator.page_range an iterator
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/pagination/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index 0757859628..31658810a2 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -233,6 +233,12 @@ class PaginationTests(unittest.TestCase): self.assertEqual(page2.previous_page_number(), 1) self.assertIsNone(page2.next_page_number()) + def test_page_range_iterator(self): + """ + Paginator.page_range should be an iterator. + """ + self.assertIsInstance(Paginator([1, 2, 3], 2).page_range, type(six.moves.range(0))) + class ModelPaginationTests(TestCase): """ |
