def test_duration_in_secs(self): self.assertEqual(duration_in_secs(datetime(2000, 1, 2) - datetime(2000, 1, 1)), 24 * 60 * 60)
def duration(self): return duration_in_secs(TimeScale.duration(self))