def test_error(self): with pytest.raises(ValueError): inputs.date('2008-13-13')
def test_default(self): assert inputs.date('2008-08-01') == datetime(2008, 8, 1)
def test_later_than_1900(self): assert inputs.date('1900-01-01') == datetime(1900, 1, 1)