@pytest.mark.parametrize('date_str,kwargs,msg', [('2013Q5', dict(), 'Incorrect quarterly string is given, quarter must be between 1 and 4: 2013Q5'), ('2013Q1', dict(freq='INVLD-L-DEC-SAT'), 'Unable to retrieve month information from given freq: INVLD-L-DEC-SAT')])
def test_parsers_quarterly_with_freq_error(date_str, kwargs, msg):
    with pytest.raises(parsing.DateParseError, match=msg):
        parsing.parse_time_string(date_str, **kwargs)
@pytest.mark.parametrize('date_str,kwargs,msg', [('2013Q5', dict(), 'Incorrect quarterly string is given, quarter must be between 1 and 4: 2013Q5'), ('2013Q1', dict(freq='INVLD-L-DEC-SAT'), 'Unable to retrieve month information from given freq: INVLD-L-DEC-SAT')])
def test_parsers_quarterly_with_freq_error(date_str, kwargs, msg):
    with pytest.raises(parsing.DateParseError, match=msg):
        parsing.parse_time_string(date_str, **kwargs)