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

Method testStrWithConflictingTZID

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected