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

Method testMultiZoneKeys

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

Source from the content-addressed store, hash-verified

1941 self._testMultizone(start=False, test_type='dst')
1942
1943 def testMultiZoneKeys(self):
1944 est_str = self._gettz_str('America/New_York')
1945 pst_str = self._gettz_str('America/Los_Angeles')
1946 tzic = tz.tzical(StringIO('\n'.join((est_str, pst_str))))
1947
1948 # Sort keys because they are in a random order, being dictionary keys
1949 keys = sorted(tzic.keys())
1950
1951 self.assertEqual(keys, ['US-Eastern', 'US-Pacific'])
1952
1953 # Test error conditions
1954 def testEmptyString(self):

Callers

nothing calls this directly

Calls 2

_gettz_strMethod · 0.95
keysMethod · 0.80

Tested by

no test coverage detected