
    f%	                         d Z ddlZddlmZmZmZ ddlZd Zej        	                    dedfedfedfed	fg          d
             Z
d ZdS )z3tests ensuring that *the* way of doing things works    N)CalendarEventTimezonec                    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 )zO create 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         a/var/www/dev/btcams2024/python_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    zcomponent,exampleexampleexample.icsevent_with_rsvppacific_fijic                     t           |t          |t          |i}|                    |          }||         |         }||k    sJ dS )z'Check that the examples function works.N)r   r   r   r$   )	tzpr   	timezonesevents	componentr$   mappingexample_componentexpected_components	            r!   test_component_has_examplesr0   *   sR     E68YGG!))'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_othersr8   :   s    	z	"	" +a)***+ + + + + + + + + + + + + + +CLL((((((s   ;??)__doc__r   	icalendarr   r   r   r2   r"   markparametrizer0   r8    r#   r!   <module>r>      s    9 9  / / / / / / / / / / S S SD ,	9	=!	!"	>"	 3 3 3) ) ) ) )r#   