예제 #1
0
 def test_date_in(self):
     self.assertTrue(check_date('1981-04-15'))
     self.assertTrue(check_date('1982-01-15'))
     self.assertTrue(check_date('1982-01-30'))
     self.assertTrue(check_date('1994-12-31'))
     self.assertTrue(check_date('1995-11-21'))
     self.assertTrue(check_date('1995-11-01'))
예제 #2
0
 def test_date_in(self):
     self.assertTrue(check_date('1981-04-15'))
     self.assertTrue(check_date('1982-01-15'))
     self.assertTrue(check_date('1982-01-30'))
     self.assertTrue(check_date('1994-12-31'))
     self.assertTrue(check_date('1995-11-21'))
     self.assertTrue(check_date('1995-11-01'))
예제 #3
0
 def test_date_after(self):
     self.assertFalse(check_date('1995-11-22'))
     self.assertFalse(check_date('1996-01-01'))
     self.assertFalse(check_date('1999-11-15'))
예제 #4
0
 def test_date_before(self):
     self.assertFalse(check_date('1981-04-14'))
     self.assertFalse(check_date('1980-04-30'))
     self.assertFalse(check_date('1000-01-01'))
예제 #5
0
 def test_date_after(self):
     self.assertFalse(check_date('1995-11-22'))
     self.assertFalse(check_date('1996-01-01'))
     self.assertFalse(check_date('1999-11-15'))
예제 #6
0
 def test_date_before(self):
     self.assertFalse(check_date('1981-04-14'))
     self.assertFalse(check_date('1980-04-30'))
     self.assertFalse(check_date('1000-01-01'))