
    i
              
          d Z ddlZddlZddlmZmZmZmZmZm	Z	m
Z
 d Zej                            dedfedfedfe	d	fe
dfg          d
             Zd Zej                            deee	eee
eg          d             ZdS )z3tests ensuring that *the* way of doing things works    N)AlarmAvailability	AvailableCalendarEventTimezoneTodoc                    t                      }|                    dd           |                    dd           |                    dd           |                    dd           |                    d	d
           t                      }|                    dt          j        dddddd|                     |                    dt          j        dddddd|                     |                    dt          j        dddddd|                     |                    dd           |                    dd           |                    dd           |                    dd           |                    |           t                      }|                    dt          j        dddddd|                     |                    dd           |                    |           t                      }|                    dd           |                    |           |                                | j        j        k    sJ dS )zMcreate a calendar with events that contain unicode characters in their fieldsPRODIDu+   -//Plönë.org//NONSGML plone.app.event//ENVERSIONz2.0zX-WR-CALNAMEu   äöü ÄÖÜ €zX-WR-CALDESCu!   test non ascii: äöü ÄÖÜ €zX-WR-RELCALID12345DTSTARTi  
   r   )tzinfoDTEND   CREATEDUID123456SUMMARYu!   Non-ASCII Test: ÄÖÜ äöü €DESCRIPTIONz3icalendar should be able to de/serialize non-ascii.LOCATIONu
   Tribstrülu   åäöu   äöüßÄÖÜN)r   addr   datetimeadd_componentto_ical$created_calendar_with_unicode_fieldsraw_ics)	calendarsutccaleventevent1event2s         X/root/projects/butler/venv/lib/python3.11/site-packages/icalendar/tests/test_examples.py*test_creating_calendar_with_unicode_fieldsr&   
   s%   
**CGGHCDDDGGIuGGN/000GGN?@@@GGOW%%%GGE	IIi*4RQ#NNNOOO	IIgx(r2r1aLLLMMM	IIi*4RAqMMMNNN	IIeX	IIi<===	IImRSSS	IIj,'''e WWF
JJy(+D"b!Q#NNNOOO
JJy(###f WWF
JJ}.///f;;==IJRRRRRRR    	componentexampler*   example.icsevent_with_rsvppacific_fijic           
          t           |t          |t          |t          |t          |i}|                    |          }	||         |         }
|	|
k    sJ dS )z'Check that the examples function works.N)r   r   r   r	   r   r*   )tzpr   	timezoneseventstodosr)   r*   alarmsmappingexample_componentexpected_components              r%   test_component_has_examplesr7   ,   sb     	)v)evG "))'22 +G4 2222222r'   c                      t          j        t                    5 } t          j        d           ddd           n# 1 swxY w Y   dt          | j                  v sJ dS )zWe need a bit of guidance here.zdoes not existNr+   )pytestraises
ValueErrorr   r*   strvalue)es    r%   &test_invalid_examples_lists_the_othersr?   F   s    	z	"	" +a)***+ + + + + + + + + + + + + + +CLL((((((s   ;??r)   c                 R    |                                  }t          ||           sJ dS )z%Check that we have a default example.N)r*   
isinstancer(   s     r%   test_default_examplerB   M   s1    
 !!Ggy)))))))r'   )__doc__r   r9   	icalendarr   r   r   r   r   r   r	   r&   markparametrizer7   r?   rB    r'   r%   <module>rH      s$   9 9   U U U U U U U U U U U U U U U U U US S SD 	9	=!	!"	>"	y	 	3 3	 	3 ) ) ) (E8YdER * * * * *r'   