Beispiel #1
0
 def test_from(self):
     t0 = time.time()
     isotime = io.get_isotime(t0)
     self.assertTrue(abs(t0 - io.from_isotime(isotime)) < 1, "timing are precise to the second")
Beispiel #2
0
 def test_from(self):
     t0 = time.perf_counter()
     isotime = io.get_isotime(t0)
     self.assertTrue(
         abs(t0 - io.from_isotime(isotime)) < 1,
         "timing are precise to the second")
Beispiel #3
0
 def test_from(self):
     t0 = time.time()
     isotime = io.get_isotime(t0)
     self.assert_(
         abs(t0 - io.from_isotime(isotime)) < 1,
         "timing are precise to the second")