def test_time_set_from_outside(self):
     travelcalculator = TravelCalculator(64, 128)
     travelcalculator.time_set_from_outside = 1000
     self.assertEqual(travelcalculator.current_time(), 1000)
 def test_time_default(self):
     travelcalculator = TravelCalculator(64, 128)
     self.assertLess(abs(time.time() - travelcalculator.current_time()),
                     0.001)