summaryrefslogtreecommitdiff
path: root/tests/pagination
diff options
context:
space:
mode:
authorza <za@python.or.id>2016-10-27 14:53:39 +0700
committerTim Graham <timograham@gmail.com>2016-11-10 21:30:21 -0500
commit321e94fa41b121f65c02119c02098df327bbd569 (patch)
treece5476c191d589aca4b124f841dfbccac8dd299f /tests/pagination
parent4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff)
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/pagination')
-rw-r--r--tests/pagination/tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py
index cc063c9eb8..888cb813b0 100644
--- a/tests/pagination/tests.py
+++ b/tests/pagination/tests.py
@@ -113,8 +113,7 @@ class PaginationTests(unittest.TestCase):
def test_invalid_page_number(self):
"""
- Tests that invalid page numbers result in the correct exception being
- raised.
+ Invalid page numbers result in the correct exception being raised.
"""
paginator = Paginator([1, 2, 3], 2)
with self.assertRaises(InvalidPage):
@@ -165,7 +164,7 @@ class PaginationTests(unittest.TestCase):
def test_page_indexes(self):
"""
- Tests that paginator pages have the correct start and end indexes.
+ Paginator pages have the correct start and end indexes.
"""
ten = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
tests = (
@@ -215,7 +214,7 @@ class PaginationTests(unittest.TestCase):
def test_page_sequence(self):
"""
- Tests that a paginator page acts like a standard sequence.
+ A paginator page acts like a standard sequence.
"""
eleven = 'abcdefghijk'
page2 = Paginator(eleven, per_page=5, orphans=1).page(2)
@@ -227,7 +226,7 @@ class PaginationTests(unittest.TestCase):
def test_get_page_hook(self):
"""
- Tests that a Paginator subclass can use the ``_get_page`` hook to
+ A Paginator subclass can use the ``_get_page`` hook to
return an alternative to the standard Page class.
"""
eleven = 'abcdefghijk'