Esempio n. 1
0
 def test_5_of_9_pages(self):
     page = self.page(5, 9)
     self.assertEqual([1, None, 4, 5, 6, None, 9], page_list(page))
Esempio n. 2
0
 def test_4_of_8_pages(self):
     page = self.page(4, 8)
     self.assertEqual([1, 2, 3, 4, 5, None, 8], page_list(page))
Esempio n. 3
0
 def test_8_of_8_pages(self):
     page = self.page(8, 8)
     self.assertEqual([1, None, 4, 5, 6, 7, 8], page_list(page))
Esempio n. 4
0
 def test_five_pages(self):
     page = self.page(3, 5)
     self.assertEqual([1, 2, 3, 4, 5], page_list(page))
Esempio n. 5
0
 def test_seven_pages(self):
     page = self.page(2, 7)
     self.assertEqual([1, 2, 3, 4, 5, 6, 7], page_list(page))
Esempio n. 6
0
 def test_empty(self):
     page = self.page(1, 0)
     self.assertEqual([1], page_list(page))
Esempio n. 7
0
 def test_two_pages(self):
     page = self.page(1, 2)
     self.assertEqual([1, 2], page_list(page))
 def test_8_of_8_pages(self):
     page = self.page(8, 8)
     self.assertEqual([1, None, 4, 5, 6, 7, 8], page_list(page))
 def test_5_of_9_pages(self):
     page = self.page(5, 9)
     self.assertEqual([1, None, 4, 5, 6, None, 9], page_list(page))
 def test_4_of_8_pages(self):
     page = self.page(4, 8)
     self.assertEqual([1, 2, 3, 4, 5, None, 8], page_list(page))
 def test_seven_pages(self):
     page = self.page(2, 7)
     self.assertEqual([1, 2, 3, 4, 5, 6, 7], page_list(page))
 def test_five_pages(self):
     page = self.page(3, 5)
     self.assertEqual([1, 2, 3, 4, 5], page_list(page))
 def test_two_pages(self):
     page = self.page(1, 2)
     self.assertEqual([1, 2], page_list(page))
 def test_empty(self):
     page = self.page(1, 0)
     self.assertEqual([1], page_list(page))