add test case from issue #500

pull/501/head
jaca 2022-12-15 20:05:22 +01:00
rodzic 16f9015e16
commit 0e0fdc574d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B67CEF4EE3D609B0
2 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,3 @@
BEGIN:VEVENT
ATTENDEE;RSVP=TRUE:mailto:someone@example.com
END:VEVENT

Wyświetl plik

@ -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_ics