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")
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")
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")