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)
Exemple #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)
 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)
Exemple #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)