Пример #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))
Пример #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))
Пример #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))
Пример #4
0
 def test_five_pages(self):
     page = self.page(3, 5)
     self.assertEqual([1, 2, 3, 4, 5], page_list(page))
Пример #5
0
 def test_seven_pages(self):
     page = self.page(2, 7)
     self.assertEqual([1, 2, 3, 4, 5, 6, 7], page_list(page))
Пример #6
0
 def test_empty(self):
     page = self.page(1, 0)
     self.assertEqual([1], page_list(page))
Пример #7
0
 def test_two_pages(self):
     page = self.page(1, 2)
     self.assertEqual([1, 2], page_list(page))
Пример #8
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))
Пример #9
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))
Пример #10
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))
Пример #11
0
 def test_seven_pages(self):
     page = self.page(2, 7)
     self.assertEqual([1, 2, 3, 4, 5, 6, 7], page_list(page))
Пример #12
0
 def test_five_pages(self):
     page = self.page(3, 5)
     self.assertEqual([1, 2, 3, 4, 5], page_list(page))
Пример #13
0
 def test_two_pages(self):
     page = self.page(1, 2)
     self.assertEqual([1, 2], page_list(page))
Пример #14
0
 def test_empty(self):
     page = self.page(1, 0)
     self.assertEqual([1], page_list(page))