(self)
| 11 | self.history = History(f"#{x}" for x in range(1000)) |
| 12 | |
| 13 | def test_is_at_start(self): |
| 14 | self.history.first() |
| 15 | |
| 16 | self.assertNotEqual(self.history.index, 0) |
| 17 | self.assertTrue(self.history.is_at_end) |
| 18 | self.history.forward() |
| 19 | self.assertFalse(self.history.is_at_end) |
| 20 | |
| 21 | def test_is_at_end(self): |
| 22 | self.history.last() |