()
| 17 | |
| 18 | |
| 19 | def test_in_tz(): |
| 20 | d = pendulum.datetime(2015, 1, 15, 18, 15, 34) |
| 21 | now = pendulum.datetime(2015, 1, 15, 18, 15, 34) |
| 22 | assert d.timezone_name == "UTC" |
| 23 | assert_datetime(d, now.year, now.month, now.day, now.hour, now.minute) |
| 24 | |
| 25 | d = d.in_tz("Europe/Paris") |
| 26 | assert d.timezone_name == "Europe/Paris" |
| 27 | assert_datetime(d, now.year, now.month, now.day, now.hour + 1, now.minute) |
| 28 | |
| 29 | |
| 30 | def test_astimezone(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…