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

Method testStrSetExDateWithTZID

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

Source from the content-addressed store, hash-verified

2863 datetime(1997, 9, 16, 9, 0)]
2864
2865 def testStrSetExDateWithTZID(self):
2866 BXL = tz.gettz('Europe/Brussels')
2867 rr = rrulestr("DTSTART;TZID=Europe/Brussels:19970902T090000\n"
2868 "RRULE:FREQ=YEARLY;COUNT=6;BYDAY=TU,TH\n"
2869 "EXDATE;TZID=Europe/Brussels:19970904T090000\n"
2870 "EXDATE;TZID=Europe/Brussels:19970911T090000\n"
2871 "EXDATE;TZID=Europe/Brussels:19970918T090000\n")
2872
2873 assert list(rr) == [datetime(1997, 9, 2, 9, 0, tzinfo=BXL),
2874 datetime(1997, 9, 9, 9, 0, tzinfo=BXL),
2875 datetime(1997, 9, 16, 9, 0, tzinfo=BXL)]
2876
2877 def testStrSetExDateValueDateTimeNoTZID(self):
2878 rrstr = '\n'.join([

Callers

nothing calls this directly

Calls 1

gettzMethod · 0.45

Tested by

no test coverage detected