def test_endtime_DataFromPythonMySQL(self): data = {'endtime': '23:11:59'} schedule = ScheduleFromQuery(data, Mock()) self.assertEquals('231159', schedule.endtime())
def test_endtime_DataFromPythonMySQL(self): data = {'endtime':'23:11:59'} schedule = ScheduleFromQuery(data, Mock()) self.assertEquals('231159', schedule.endtime())
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())
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())