示例#1
0
 def testCompDateFalse(self):
     date_1 = datetime.strptime(date1, "%Y-%m-%d %H:%M:%S")
     date_3 = datetime.strptime(date3, "%Y-%m-%d %H:%M:%S")
     res = compDate(date_1, date_3)
     self.assertFalse(res)
示例#2
0
 def testCompDateFalse(self):
     date_1 = datetime.strptime(date1, "%Y-%m-%d %H:%M:%S")
     date_3 = datetime.strptime(date3, "%Y-%m-%d %H:%M:%S")
     res = compDate(date_1, date_3)
     self.assertFalse(res)
示例#3
0
 def testCompDateTrue(self):
     date_1 = datetime.strptime(date1, "%Y-%m-%d %H:%M:%S")
     date_2 = datetime.strptime(date2, "%Y-%m-%d %H:%M:%S")
     res = compDate(date_1, date_2)
     self.assertTrue(res)
示例#4
0
 def testCompDateTrue(self):
     date_1 = datetime.strptime(date1, "%Y-%m-%d %H:%M:%S")
     date_2 = datetime.strptime(date2, "%Y-%m-%d %H:%M:%S")
     res = compDate(date_1, date_2)
     self.assertTrue(res)