Exemple #1
0
def test_coerce_date_invalid_value(test_input):
    with pytest.raises(ValueError):
        coerce_date(test_input)
Exemple #2
0
def test_coerce_date_invalid_type(test_input):
    with pytest.raises(TypeError):
        coerce_date(test_input)
Exemple #3
0
def test_coerce_date(test_input):
    assert coerce_date(test_input) == date(2016, 8, 3)
Exemple #4
0
def test_coerce_date_invalid_value(test_input):
    with pytest.raises(ValueError):
        coerce_date(test_input)
Exemple #5
0
def test_coerce_date_invalid_type(test_input):
    with pytest.raises(TypeError):
        coerce_date(test_input)
Exemple #6
0
def test_coerce_date(test_input):
    assert coerce_date(test_input) == date(2016, 8, 3)