Beispiel #1
0
 def testSecondsSinceEpoch(self):
     s = Schedule(
         secondsSinceEpoch=123
     )  # test with ints, but works with floats as well (much harder to test due to binary representation)
     self.assertEquals(123, s.secondsSinceEpoch)
     s._time = lambda: 76
     self.assertEquals(47, s.secondsFromNow())
 def testSecondsSinceEpoch(self):
     s = Schedule(secondsSinceEpoch=123) # test with ints, but works with floats as well (much harder to test due to binary representation)
     self.assertEquals(123, s.secondsSinceEpoch)
     s._time = lambda: 76
     self.assertEquals(47, s.secondsFromNow())