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

Method testStrWithTZID

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected