def test_coerce_date_invalid_value(test_input): with pytest.raises(ValueError): coerce_date(test_input)
def test_coerce_date_invalid_type(test_input): with pytest.raises(TypeError): coerce_date(test_input)
def test_coerce_date(test_input): assert coerce_date(test_input) == date(2016, 8, 3)