(hist)
| 280 | |
| 281 | |
| 282 | def test_history_class_get(hist) -> None: |
| 283 | assert hist.get(1).statement.raw == "first" |
| 284 | assert hist.get(3).statement.raw == "third" |
| 285 | assert hist.get(-2) == hist[-2] |
| 286 | assert hist.get(-1).statement.raw == "fourth" |
| 287 | |
| 288 | with pytest.raises(IndexError): |
| 289 | hist.get(0) |
| 290 | |
| 291 | with pytest.raises(IndexError): |
| 292 | hist.get(5) |
| 293 | |
| 294 | |
| 295 | def test_history_str_search(hist) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…