Tests that calling location(idx) raises when the index is out of bounds.
(ok_small, idx: int)
| 732 | |
| 733 | @pytest.mark.parametrize("idx", [5, 6]) |
| 734 | def test_location_raises_invalid_index(ok_small, idx: int): |
| 735 | """ |
| 736 | Tests that calling location(idx) raises when the index is out of bounds. |
| 737 | """ |
| 738 | assert_equal(ok_small.num_depots, 1) |
| 739 | assert_equal(ok_small.num_clients, 4) |
| 740 | |
| 741 | with assert_raises(IndexError): |
| 742 | ok_small.location(idx) |
| 743 | |
| 744 | |
| 745 | @pytest.mark.parametrize( |