()
| 109 | |
| 110 | @time_machine.travel("2016-10-30 00:30:00Z", tick=False) |
| 111 | def test_now_dst_on(): |
| 112 | utc = pendulum.now("UTC") |
| 113 | in_paris = pendulum.now("Europe/Paris") |
| 114 | in_paris_from_utc = utc.in_tz("Europe/Paris") |
| 115 | assert in_paris.hour == 2 |
| 116 | assert in_paris.is_dst() |
| 117 | assert in_paris.isoformat() == in_paris_from_utc.isoformat() |
| 118 | |
| 119 | @time_machine.travel("2016-10-30 01:30:00Z", tick=False) |
| 120 | def test_now_dst_transitioning_off(): |