()
| 337 | |
| 338 | |
| 339 | def test_dst_fold_attribute_is_honored(): |
| 340 | tz = pendulum.timezone("US/Eastern") |
| 341 | dt = datetime(2014, 11, 2, 1, 30) |
| 342 | |
| 343 | offset = tz.dst(dt) |
| 344 | |
| 345 | assert offset.total_seconds() == 3600 |
| 346 | |
| 347 | offset = tz.dst(dt.replace(fold=1)) |
| 348 | |
| 349 | assert offset.total_seconds() == 0 |
| 350 | |
| 351 | |
| 352 | def test_tzname_fold_attribute_is_honored(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…