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

Method testStrWithConflictingTZID

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

Source from the content-addressed store, hash-verified

2738 rrulestr(rrstr, tzids=tzinfos)
2739
2740 def testStrWithConflictingTZID(self):
2741 # RFC 5545 Section 3.3.5, FORM #2: DATE WITH UTC TIME
2742 # https://tools.ietf.org/html/rfc5545#section-3.3.5
2743 # The "TZID" property parameter MUST NOT be applied to DATE-TIME
2744 with self.assertRaises(ValueError):
2745 rrulestr("DTSTART;TZID=America/New_York:19970902T090000Z\n"+
2746 "RRULE:FREQ=YEARLY;COUNT=3\n")
2747
2748 def testStrType(self):
2749 self.assertEqual(isinstance(rrulestr(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected