Beispiel #1
0
def test_invalid_date_fails():
    with pytest.raises(ValueError):
        rdt.make_date(2017, 2, 30)
Beispiel #2
0
def test_date():
    assert rdt.make_date(2017, 9, 1) == pdt.date(2017, 9, 1)