예제 #1
0
 def test_default(self):
     assert inputs.date('2008-08-01') == datetime(2008, 8, 1)
예제 #2
0
 def test_later_than_1900(self):
     assert inputs.date('1900-01-01') == datetime(1900, 1, 1)
예제 #3
0
 def test_error(self):
     with pytest.raises(ValueError):
         inputs.date('2008-13-13')
예제 #4
0
 def test_error(self):
     with assert_raises(ValueError):
         inputs.date('2008-13-13')
예제 #5
0
 def test_default(self):
     assert_equal(inputs.date('2008-08-01'), datetime(2008, 8, 1))
예제 #6
0
 def test_default(self):
     assert_equal(inputs.date('2008-08-01'), datetime(2008, 8, 1))
예제 #7
0
 def test_later_than_1900(self):
     assert_equal(inputs.date('1900-01-01'), datetime(1900, 1, 1))
예제 #8
0
 def test_error(self):
     with assert_raises(ValueError):
         inputs.date('2008-13-13')
예제 #9
0
 def test_later_than_1900(self):
     assert_equal(inputs.date('1900-01-01'), datetime(1900, 1, 1))
예제 #10
0
 def test_default(self):
     assert inputs.date('2008-08-01') == datetime(2008, 8, 1)
예제 #11
0
 def test_error(self):
     with pytest.raises(ValueError):
         inputs.date('2008-13-13')
예제 #12
0
 def test_later_than_1900(self):
     assert inputs.date('1900-01-01') == datetime(1900, 1, 1)