Every available key loads, from the source it was found in.
(tz_source)
| 74 | |
| 75 | |
| 76 | def test_every_key_loads(tz_source): |
| 77 | """Every available key loads, from the source it was found in.""" |
| 78 | tzpath = [os.path.join(path, "") for path in tz.TZPATH] |
| 79 | for key in _keys(): |
| 80 | zone = tz.gettz(key) |
| 81 | assert isinstance(zone, tz.tzfile), key |
| 82 | assert zone.key == key |
| 83 | |
| 84 | if tz_source == "tzpath": |
| 85 | assert any(zone._filename.startswith(p) for p in tzpath), key |
| 86 | |
| 87 | |
| 88 | def test_utc_round_trip(tz_source): |