()
| 28 | |
| 29 | |
| 30 | def test_equal_with_timezone_true(): |
| 31 | d1 = pendulum.datetime(2000, 1, 1, 12, 0, 0, tz="America/Toronto") |
| 32 | d2 = pendulum.datetime(2000, 1, 1, 9, 0, 0, tz="America/Vancouver") |
| 33 | d3 = datetime(2000, 1, 1, 12, 0, 0, tzinfo=pendulum.timezone("America/Toronto")) |
| 34 | |
| 35 | assert d2 == d1 |
| 36 | assert d3 == d1 |
| 37 | |
| 38 | |
| 39 | def test_equal_with_timezone_false(): |