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

Method testFileEnd1

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

Source from the content-addressed store, hash-verified

2098 self.assertEqual(datetime(2003, 4, 6, 3, 0, tzinfo=tzc).tzname(), "EDT")
2099
2100 def testFileEnd1(self):
2101 tzc = tz.tzfile(BytesIO(base64.b64decode(TZFILE_EST5EDT)))
2102 self.assertEqual(
2103 datetime(2003, 10, 26, 0, 59, tzinfo=tzc).tzname(), "EDT"
2104 )
2105 end_est = tz.enfold(datetime(2003, 10, 26, 1, 0, tzinfo=tzc))
2106 self.assertEqual(end_est.tzname(), "EST")
2107
2108 def testFileLastTransition(self):
2109 # After the last transition, it goes to standard time in perpetuity

Callers

nothing calls this directly

Calls 1

tznameMethod · 0.45

Tested by

no test coverage detected