示例#1
0
 def test_date_check_incorrect_size(self):
     string = '20002-12-32'
     self.assertFalse(checkDateString(string))
示例#2
0
 def test_date_check_correct_size_wrong_characters(self):
     string = '2AAA-01-01'
     self.assertFalse(checkDateString(string))
示例#3
0
 def test_date_check_incorrect_month(self):
     string = '2000-13-01'
     self.assertFalse(checkDateString(string))
示例#4
0
 def test_date_check_correct_string(self):
     string = '2000-10-07'
     self.assertTrue(checkDateString(string))
示例#5
0
 def test_date_check_wrong_argument(self):
     string = None
     self.assertFalse(checkDateString(string))
示例#6
0
 def test_date_check_incorrect_size(self):
     string = '20002-12-32'
     self.assertFalse(checkDateString(string))
示例#7
0
 def test_date_check_incorrect_month(self):
     string = '2000-13-01'
     self.assertFalse(checkDateString(string))
示例#8
0
 def test_date_check_correct_size_wrong_characters(self):
     string = '2AAA-01-01'
     self.assertFalse(checkDateString(string))
示例#9
0
 def test_date_check_wrong_argument(self):
     string = None
     self.assertFalse(checkDateString(string))
示例#10
0
 def test_date_check_correct_string(self):
     string = '2000-10-07'
     self.assertTrue(checkDateString(string))