()
| 91 | |
| 92 | @time_machine.travel("2016-03-27 00:30:00Z", tick=False) |
| 93 | def test_now_dst_off(): |
| 94 | utc = pendulum.now("UTC") |
| 95 | in_paris = pendulum.now("Europe/Paris") |
| 96 | in_paris_from_utc = utc.in_tz("Europe/Paris") |
| 97 | assert in_paris.hour == 1 |
| 98 | assert not in_paris.is_dst() |
| 99 | assert in_paris.isoformat() == in_paris_from_utc.isoformat() |
| 100 | |
| 101 | @time_machine.travel("2016-03-27 01:30:00Z", tick=False) |
| 102 | def test_now_dst_transitioning_on(): |