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

Method testStrSetExDateWithTZID

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

Source from the content-addressed store, hash-verified

2870 datetime(1997, 9, 16, 9, 0)]
2871
2872 def testStrSetExDateWithTZID(self):
2873 BXL = tz.gettz('Europe/Brussels')
2874 self.assertIsNotNone(BXL)
2875 rr = rrulestr("DTSTART;TZID=Europe/Brussels:19970902T090000\n"
2876 "RRULE:FREQ=YEARLY;COUNT=6;BYDAY=TU,TH\n"
2877 "EXDATE;TZID=Europe/Brussels:19970904T090000\n"
2878 "EXDATE;TZID=Europe/Brussels:19970911T090000\n"
2879 "EXDATE;TZID=Europe/Brussels:19970918T090000\n")
2880
2881 assert list(rr) == [datetime(1997, 9, 2, 9, 0, tzinfo=BXL),
2882 datetime(1997, 9, 9, 9, 0, tzinfo=BXL),
2883 datetime(1997, 9, 16, 9, 0, tzinfo=BXL)]
2884
2885 def testStrSetExDateValueDateTimeNoTZID(self):
2886 rrstr = '\n'.join([

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected