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

Function test_farthest_with_equals

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

Source from the content-addressed store, hash-verified

220
221
222def test_farthest_with_equals():
223 instance = pendulum.Date(2015, 5, 28)
224 dt1 = pendulum.Date(2015, 5, 28)
225 dt2 = pendulum.Date(2015, 5, 30)
226 closest = instance.farthest(dt1, dt2)
227 assert closest == dt2
228
229
230def test_is_same_day():

Callers

nothing calls this directly

Calls 1

farthestMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…