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

Function test_closest_with_equals

tests/date/test_comparison.py:194–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192
193
194def test_closest_with_equals():
195 instance = pendulum.Date(2015, 5, 28)
196 dt1 = pendulum.Date(2015, 5, 28)
197 dt2 = pendulum.Date(2015, 5, 30)
198 closest = instance.closest(dt1, dt2)
199 assert closest == dt1
200
201
202def test_farthest():

Callers

nothing calls this directly

Calls 1

closestMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…