def testTimeDiffEq(self): fit = Fitness() self.assertEqual(fit.timeDiff('00:00', '00:00'), timedelta(hours=0, minutes=0))
def testTimeDiffNeg(self): fit = Fitness() self.assertEqual(fit.timeDiff('08:00', '08:01'), timedelta(minutes=-1))
def testTimeDiffPos(self): fit = Fitness() self.assertEqual(fit.timeDiff('23:59', '00:00'), timedelta(hours=23, minutes=59))