Add a (redoundant) test for pull #176

This commit is contained in:
Vincent Jacques
2013-06-19 12:35:25 +02:00
parent 8d22935180
commit 88db904484
2 changed files with 51 additions and 0 deletions
+7
View File
@@ -99,6 +99,13 @@ class PaginatedList(Framework.TestCase):
None
)
def testCustomPerPageWithNoUrlParams2(self):
# This test is redountant and less unitary than testCustomPerPageWithNoUrlParams
# but I hope it will be more robust if we refactor PaginatedList,
# because testCustomPerPageWithNoUrlParams only tests the constructor
self.g.per_page = 100
self.assertEqual(len(list(self.repo.get_comments())), 325)
def testCustomPerPageWithGetPage(self):
self.g.per_page = 100
self.assertEqual(len(self.repo.get_issues().get_page(2)), 100)
File diff suppressed because one or more lines are too long