U
    ¤�©j]  ã                   @   sL   d Z ddlmZ ddlmZ ddlmZ ddlmZ dZdd„ Z	d	d
„ Z
dS )z¾We would like to be able to get the right timezone names.

See https://github.com/collective/icalendar/issues/336

It appears that the timezone Brazil/DeNoronha is actually America/Noronha.
é    )Údatetime)Útz)ÚEvent)Útzid_from_tzinfo)zAmerica/NoronhaúBrazil/DeNoronhac                  C   s   t  d¡} t| ƒtkst‚dS )zTry to get the name directly.r   N)r   Úgettzr   Úvalid_namesÚAssertionError©Útzinfo© r   úT/tmp/pip-unpacked-wheel-g40nyxg1/icalendar/tests/test_issue_336_dateutil_timezone.pyÚtest_timezone_name_directly   s    
r   c               	      sT   t ƒ } tdddddt d¡d�| _|  ¡  ¡ ‰ tˆ ƒ t‡ fdd	„t	D ƒƒsPt
‚d
S )z@The example has an event in it and we want to have the id in it.ié  é   é   é   é   r   r
   c                 3   s   | ]}|ˆ kV  qd S )Nr   )Ú.0Úname©Zicsr   r   Ú	<genexpr>   s     z test_in_event.<locals>.<genexpr>N)r   r   r   r   ÚstartZto_icalÚdecodeÚprintÚanyr   r	   )Úeventr   r   r   Útest_in_event   s
    r   N)Ú__doc__r   Zdateutilr   Z	icalendarr   Zicalendar.timezoner   r   r   r   r   r   r   r   Ú<module>   s   