()
| 150 | |
| 151 | |
| 152 | def test_farthest(): |
| 153 | instance = pendulum.time(12, 34, 56) |
| 154 | t1 = pendulum.time(12, 34, 54) |
| 155 | t2 = pendulum.time(12, 34, 59) |
| 156 | farthest = instance.farthest(t1, t2) |
| 157 | assert t2 == farthest |
| 158 | |
| 159 | farthest = instance.farthest(t2, t1) |
| 160 | assert t2 == farthest |
| 161 | |
| 162 | |
| 163 | def test_farthest_with_time(): |