MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_closest_with_equals

Function test_closest_with_equals

tests/datetime/test_comparison.py:314–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312
313
314def test_closest_with_equals():
315 instance = pendulum.datetime(2015, 5, 28, 12, 0, 0)
316 dt1 = pendulum.datetime(2015, 5, 28, 12, 0, 0)
317 dt2 = pendulum.datetime(2015, 5, 28, 14, 0, 0)
318 closest = instance.closest(dt1, dt2)
319 assert closest == dt1
320
321
322def test_farthest():

Callers

nothing calls this directly

Calls 2

datetimeMethod · 0.45
closestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…