Skip to content

Commit

Permalink
add test case from issue #500
Browse files Browse the repository at this point in the history
  • Loading branch information
jacadzaca committed Dec 15, 2022
1 parent 16f9015 commit 742c16e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/icalendar/tests/events/event_with_rsvp.ics
@@ -0,0 +1,3 @@
BEGIN:VEVENT
ATTENDEE:RSVP=TRUE:mailto:someone@example.com
END:VEVENT
9 changes: 9 additions & 0 deletions src/icalendar/tests/test_issue_500_vboolean_for_parameter.py
@@ -0,0 +1,9 @@
from icalendar import Event, vBoolean, vCalAddress

def test_vBoolean_can_be_used_as_parameter_issue_500(events):
'''https://github.com/collective/icalendar/issues/500'''
attendee = vCalAddress(f'mailto:someone@example.com')
attendee.params['rsvp'] = vBoolean(True)
event = Event()
event.add('attendee', attendee)
assert event.to_ical() == events.event_with_rsvp.raw_ical

0 comments on commit 742c16e

Please sign in to comment.