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

Function test_utils_within_delta

tests/test_utils.py:40–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

within_deltaFunction · 0.90
replaceMethod · 0.45

Tested by

no test coverage detected