U
    j                     @   sP   d Z ddlmZmZ ddlmZ edddZedddZd	d
 Zdd Z	dS )aF  Test that we can identify all timezones.

Timezones can be removed from ./timezone_ids.py if they make the tests fail:
Timezone information changes over time and can be dependent on the operating system's
timezone database (zoneinfo, dateutil) or the package (pytz).
We want to make sure we can roughly identify most of them.
    )tzid_from_tzinfotzids_from_tzinfo)TZP)tzpc                 C   s   | t || kstdS )z:Check that all those zoneinfo timezones can be identified.Nr   timezoneAssertionError)tzidZzoneinfo_onlyr    r
   P/tmp/pip-unpacked-wheel-g40nyxg1/icalendar/tests/test_timezone_identification.pytest_can_identify_zoneinfo   s    r   c                 C   s   | t || kstdS )z6Check that all those pytz timezones can be identified.Nr   )r	   Z	pytz_onlyr   r
   r
   r   test_can_identify_pytz   s    r   c                 C   s$   ddl m} | t|| ks tdS )z:Check that all those dateutil timezones can be identified.r   )gettzN)Zdateutil.tzr   r   r   )r	   r   r
   r
   r   test_can_identify_dateutil   s    r   c                 C   s$   dt | kstt| dks tdS )z0Test UTC because it is handled in a special way.UTCN)r   r   r   )utcr
   r
   r   test_utc_is_identified   s    r   N)
__doc__Zicalendar.timezoner   r   Zicalendar.timezone.tzpr   r   r   r   r   r
   r
   r
   r   <module>   s   