(self)
| 1983 | self.assertCountEqual(module_dir, module_unique) |
| 1984 | |
| 1985 | def test_available_timezones(self): |
| 1986 | with self.tzpath_context([self.zoneinfo_data.tzpath]): |
| 1987 | self.assertTrue(self.zoneinfo_data.keys) # Sanity check |
| 1988 | |
| 1989 | available_keys = self.module.available_timezones() |
| 1990 | zoneinfo_keys = set(self.zoneinfo_data.keys) |
| 1991 | |
| 1992 | # If tzdata is not present, zoneinfo_keys == available_keys, |
| 1993 | # otherwise it should be a subset. |
| 1994 | union = zoneinfo_keys & available_keys |
| 1995 | self.assertEqual(zoneinfo_keys, union) |
| 1996 | |
| 1997 | def test_available_timezones_weirdzone(self): |
| 1998 | with tempfile.TemporaryDirectory() as td: |
nothing calls this directly
no test coverage detected