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

Method testFileStart1

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

Source from the content-addressed store, hash-verified

1989
1990class TZTest(unittest.TestCase):
1991 def testFileStart1(self):
1992 tzc = tz.tzfile(BytesIO(base64.b64decode(TZFILE_EST5EDT)))
1993 self.assertEqual(datetime(2003, 4, 6, 1, 59, tzinfo=tzc).tzname(), "EST")
1994 self.assertEqual(datetime(2003, 4, 6, 2, 00, tzinfo=tzc).tzname(), "EDT")
1995
1996 def testFileEnd1(self):
1997 tzc = tz.tzfile(BytesIO(base64.b64decode(TZFILE_EST5EDT)))

Callers

nothing calls this directly

Calls 1

tznameMethod · 0.45

Tested by

no test coverage detected