def test_issue_268_tzinfo_x_parm(): inp = """ BEGIN:VCALENDAR PRODID;X-RICAL-TZSOURCE=TZINFO:-//com.denhaven2/NONSGML ri_cal gem//EN CALSCALE:GREGORIAN VERSION:2.0 X-WR-CALNAME::Some Physical Therapy Centres Appointments BEGIN:VTIMEZONE TZID;X-RICAL-TZSOURCE=TZINFO:America/Toronto BEGIN:DAYLIGHT DTSTART:20210314T020000 RDATE:20210314T020000 TZOFFSETFROM:-0500 TZOFFSETTO:-0400 TZNAME:EDT END:DAYLIGHT END:VTIMEZONE BEGIN:VEVENT DTEND;TZID=America/Toronto;VALUE=DATE-TIME:20210719T100000 STATUS:CONFIRMED DTSTART;TZID=America/Toronto;VALUE=DATE-TIME:20210719T090000 DTSTAMP;VALUE=DATE-TIME:20210818T113251Z UID:[email protected] DESCRIPTION: SUMMARY:A. Person (MVA Physio Subsequent) ORGANIZER;CN="Some Physical Therapy Centres":mailto:infosouth@someptc .ca LOCATION:Some Physical Therapy Centres - 1234 St Unnamed Blvd\, 123\, O ttawa SEQUENCE:6044449 END:VEVENT END:VCALENDAR """.strip() cal = Calendar(inp) cmp(cal, calendar) ser = cal.serialize() deser = Calendar(ser) cmp(cal, deser)