()
| 344 | |
| 345 | |
| 346 | def test_farthest_with_datetime(): |
| 347 | instance = pendulum.datetime(2015, 5, 28, 12, 0, 0) |
| 348 | dt1 = datetime(2015, 5, 28, 11, 0, 0, tzinfo=pendulum.UTC) |
| 349 | dt2 = datetime(2015, 5, 28, 14, 0, 0, tzinfo=pendulum.UTC) |
| 350 | farthest = instance.farthest(dt1, dt2) |
| 351 | assert_datetime(farthest, 2015, 5, 28, 14, 0, 0) |
| 352 | |
| 353 | dts = [ |
| 354 | pendulum.datetime(2015, 5, 28, 16, 0, 0) + pendulum.duration(hours=x) |
| 355 | for x in range(4) |
| 356 | ] |
| 357 | farthest = instance.farthest(dt1, dt2, *dts) |
| 358 | |
| 359 | assert_datetime(farthest, 2015, 5, 28, 19, 0, 0) |
| 360 | |
| 361 | |
| 362 | def test_farthest_with_equals(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…