def test_cannot_get_a_pin_with_an_invalid_index(self):
    with pytest.raises(IndexError):
        pins.pin((- 1))
    with pytest.raises(IndexError):
        pins.pin(len(pins))
def test_cannot_get_a_pin_with_an_invalid_index(self):
    with pytest.raises(IndexError):
        pins.pin((- 1))
    with pytest.raises(IndexError):
        pins.pin(len(pins))