()
| 28 | |
| 29 | |
| 30 | def test_astimezone(): |
| 31 | d = pendulum.datetime(2015, 1, 15, 18, 15, 34) |
| 32 | now = pendulum.datetime(2015, 1, 15, 18, 15, 34) |
| 33 | assert d.timezone_name == "UTC" |
| 34 | assert_datetime(d, now.year, now.month, now.day, now.hour, now.minute) |
| 35 | |
| 36 | d = d.astimezone(pendulum.timezone("Europe/Paris")) |
| 37 | assert d.timezone_name == "Europe/Paris" |
| 38 | assert_datetime(d, now.year, now.month, now.day, now.hour + 1, now.minute) |
nothing calls this directly
no test coverage detected
searching dependent graphs…