()
| 6 | |
| 7 | |
| 8 | def test_in_timezone(): |
| 9 | d = pendulum.datetime(2015, 1, 15, 18, 15, 34) |
| 10 | now = pendulum.datetime(2015, 1, 15, 18, 15, 34) |
| 11 | assert d.timezone_name == "UTC" |
| 12 | assert_datetime(d, now.year, now.month, now.day, now.hour, now.minute) |
| 13 | |
| 14 | d = d.in_timezone("Europe/Paris") |
| 15 | assert d.timezone_name == "Europe/Paris" |
| 16 | assert_datetime(d, now.year, now.month, now.day, now.hour + 1, now.minute) |
| 17 | |
| 18 | |
| 19 | def test_in_tz(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…