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

Function test_farthest

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

Source from the content-addressed store, hash-verified

200
201
202def test_farthest():
203 instance = pendulum.Date(2015, 5, 28)
204 dt1 = pendulum.Date(2015, 5, 27)
205 dt2 = pendulum.Date(2015, 5, 30)
206 closest = instance.farthest(dt1, dt2)
207 assert closest == dt2
208
209 closest = instance.farthest(dt2, dt1)
210 assert closest == dt2
211
212
213def test_farthest_with_date():

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…