Example #1
0
 def test_endtime_DataFromPythonMySQL(self):
     data = {'endtime': '23:11:59'}
     schedule = ScheduleFromQuery(data, Mock())
     self.assertEquals('231159', schedule.endtime())
Example #2
0
 def test_endtime_DataFromPythonMySQL(self):
     data = {'endtime':'23:11:59'}
     schedule = ScheduleFromQuery(data, Mock())
     self.assertEquals('231159', schedule.endtime())
Example #3
0
 def test_endtime_DataFromNativeMySQL(self):
     data = {
         'endtime': datetime.timedelta(seconds=(1 * 60 * 60) + (2 * 60) + 3)
     }
     schedule = ScheduleFromQuery(data, Mock())
     self.assertEquals('010203', schedule.endtime())
Example #4
0
 def test_endtime_DataFromNativeMySQL(self):
     data = {'endtime': datetime.timedelta(seconds=(1 * 60 * 60) + (2 * 60) + 3)}
     schedule = ScheduleFromQuery(data, Mock())
     self.assertEquals('010203', schedule.endtime())