diff --git a/tests/event_test.py b/tests/event_test.py index 585e25a50..acc88ad13 100644 --- a/tests/event_test.py +++ b/tests/event_test.py @@ -678,3 +678,9 @@ def test_timezone_creation_with_arbitrary_dates(freeze_ts, event_time): assert len(vtimezone) > 14 assert 'BEGIN:STANDARD' in vtimezone assert 'BEGIN:DAYLIGHT' in vtimezone + + +def test_parameters_description(): + """test if we support DESCRIPTION properties with parameters""" + event = Event.fromString(_get_text('event_dt_description'), **EVENT_KWARGS) + assert event.description == 'Hey, \n\nJust setting aside some dedicated time to talk about redacted.' diff --git a/tests/ics/event_dt_description.ics b/tests/ics/event_dt_description.ics new file mode 100644 index 000000000..69007724d --- /dev/null +++ b/tests/ics/event_dt_description.ics @@ -0,0 +1,8 @@ +BEGIN:VEVENT +SUMMARY:An Event +DESCRIPTION;LANG=en_US:Hey, \n\nJust setting aside some dedicated time to talk about redacted. +DTSTART:20230409T093000 +DTEND:20230409T103000 +DTSTAMP:20230401T234817Z +UID:floating_with_description_and_parameter +END:VEVENT