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