MCPcopy Create free account
hub / github.com/dateutil/dateutil / test_utils_within_delta

Function test_utils_within_delta

tests/test_utils.py:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_utils_within_delta():
44 d1 = datetime(2016, 1, 1, 12, 14, 1, 9)
45 d2 = d1.replace(microsecond=15)
46
47 assert within_delta(d1, d2, timedelta(seconds=1))
48 assert not within_delta(d1, d2, timedelta(microseconds=1))
49
50
51def test_utils_within_delta_with_negative_delta():

Callers

nothing calls this directly

Calls 2

within_deltaFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected