Beispiel #1
0
 def test_calculateDuration_3(self):
     self.assertEqual(pUtils.calculateDuration('2012-10-01 10:10:00','20121001-101000'),
                      timedelta(days=0))
Beispiel #2
0
 def test_calculateDuration_4(self):
     self.assertEqual(pUtils.calculateDuration('2012-10-01 10:10:00',datetime(2012,10,01)),
                      timedelta(hours=-10,minutes=-10))
Beispiel #3
0
 def test_calculateDuration_2(self):
     self.assertEqual(pUtils.calculateDuration('2012-10-03 10:10:00','2012-10-02 10:10:00'),
                      timedelta(days=-1))