Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_timetag():
assert time_to_timetag(None) == (0, 1)
assert time_to_timetag(0)[1] == 0
assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886) # noqa
def test_timetag():
assert time_to_timetag(None) == (0, 1)
assert time_to_timetag(0)[1] == 0
assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886) # noqa
def test_timetag():
assert time_to_timetag(None) == (0, 1)
assert time_to_timetag(0)[1] == 0
assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886) # noqa
def test_timetag():
assert time_to_timetag(None) == (0, 1)
assert time_to_timetag(0)[1] == 0
assert time_to_timetag(30155831.26845886) == (2239144631, 1153022032)
assert timetag_to_time(time_to_timetag(30155831.26845886)) == approx(30155831.26845886) # noqa