(self)
| 147 | assert history.previous() == "first" |
| 148 | |
| 149 | def test_next(self): |
| 150 | history = InputHistory() |
| 151 | history.add("first") |
| 152 | history.add("second") |
| 153 | history.previous() # second |
| 154 | history.previous() # first |
| 155 | assert history.next() == "second" |
| 156 | |
| 157 | def test_next_past_end(self): |
| 158 | history = InputHistory() |
nothing calls this directly
no test coverage detected