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