def test_parse_timedelta_error():
    """Should raise when unable to parse."""
    with pytest.raises(EnvironmentError):
        lookup.parse_timedelta("1y")
def test_parse_timedelta(input, output):
    """Should parse defined timedelta strings."""
    assert output == lookup.parse_timedelta(input)