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