MCPcopy Create free account
hub / github.com/dateutil/dateutil / testMultiZoneKeys

Method testMultiZoneKeys

tests/test_tz.py:2022–2030  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2020 self._testMultizone(start=False, test_type='dst')
2021
2022 def testMultiZoneKeys(self):
2023 est_str = self._gettz_str('America/New_York')
2024 pst_str = self._gettz_str('America/Los_Angeles')
2025 tzic = tz.tzical(StringIO('\n'.join((est_str, pst_str))))
2026
2027 # Sort keys because they are in a random order, being dictionary keys
2028 keys = sorted(tzic.keys())
2029
2030 self.assertEqual(keys, ['US-Eastern', 'US-Pacific'])
2031
2032 # Test error conditions
2033 def testEmptyString(self):

Callers

nothing calls this directly

Calls 2

_gettz_strMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected