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

Method testStrTransition

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

Source from the content-addressed store, hash-verified

1501 return tz.tzstr(tzname_map[tzname])
1502
1503 def testStrTransition(self):
1504 # Check the abbreviation on either side of the DST transition.
1505 self.assertEqual(
1506 datetime(2003, 4, 6, 1, 59, tzinfo=tz.tzstr("EST5EDT")).tzname(),
1507 "EST",
1508 )
1509 self.assertEqual(
1510 datetime(2003, 4, 6, 2, 00, tzinfo=tz.tzstr("EST5EDT")).tzname(),
1511 "EDT",
1512 )
1513
1514 def testStrInequality(self):
1515 TZS1 = tz.tzstr('EST5EDT4')

Callers

nothing calls this directly

Calls 1

tznameMethod · 0.45

Tested by

no test coverage detected