Ejemplo n.º 1
0
 def test_TaskWithMinutesAndHoursDailyExpectsTomorrow(self):
     time = "16:10"
     input = "30 1 command1"
     expectedOutput = "01:30 tomorrow - command1"
     self.assertEqual(getNearestTimeWhenCommandWillExecute(time, input),
                      expectedOutput)
Ejemplo n.º 2
0
 def test_TaskWithMinutesAndForAllHourValuesAfterHourTomorrow(self):
     time = "23:10"
     input = "5 * command1"
     expectedOutput = "00:05 tomorrow - command1"
     self.assertEqual(getNearestTimeWhenCommandWillExecute(time, input),
                      expectedOutput)
Ejemplo n.º 3
0
 def test_TaskWithAnyMinutesAndForHourValues(self):
     time = "16:10"
     input = "* 19 command1"
     expectedOutput = "19:00 today - command1"
     self.assertEqual(getNearestTimeWhenCommandWillExecute(time, input),
                      expectedOutput)
Ejemplo n.º 4
0
 def test_TaskWithMinutesAndForAllHourValuesBeforeHour(self):
     time = "16:10"
     input = "45 * command1"
     expectedOutput = "16:45 today - command1"
     self.assertEqual(getNearestTimeWhenCommandWillExecute(time, input),
                      expectedOutput)