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

Method testStrWithTZID

tests/test_rrule.py:2677–2685  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2675 datetime(1999, 9, 2, 9, 0)])
2676
2677 def testStrWithTZID(self):
2678 NYC = tz.gettz('America/New_York')
2679 self.assertEqual(list(rrulestr(
2680 "DTSTART;TZID=America/New_York:19970902T090000\n"
2681 "RRULE:FREQ=YEARLY;COUNT=3\n"
2682 )),
2683 [datetime(1997, 9, 2, 9, 0, tzinfo=NYC),
2684 datetime(1998, 9, 2, 9, 0, tzinfo=NYC),
2685 datetime(1999, 9, 2, 9, 0, tzinfo=NYC)])
2686
2687 def testStrWithTZIDMapping(self):
2688 rrstr = ("DTSTART;TZID=Eastern:19970902T090000\n" +

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected