U
    jG                     @   sD   d Z ddlmZ ddlZddlmZ ddlmZ dd Zdd	 Z	dS )
z<This file collects errors that the OSS FUZZ build has found.    )timeN)Calendar)	vDDDListsc                	   C   s$   t t td W 5 Q R X dS )zBIf we get passed an invalid string, we expect to get a ValueError.zEND:CALENDARN)pytestZraises
ValueErrorr   Z	from_ical r   r   H/tmp/pip-unpacked-wheel-g40nyxg1/icalendar/tests/test_oss_fuzz_errors.pytest_stack_is_empty   s    r	   c                  C   s(   t tddddg} |  dks$tdS )zBIf we pass in a string type, we expect it to be converted to bytes   )hourminuteseconds   060606N)r   r   Zto_icalAssertionError)Z	vddd_listr   r   r   test_vdd_list_type_mismatch   s    r   )
__doc__datetimer   r   Z	icalendarr   Zicalendar.propr   r	   r   r   r   r   r   <module>   s   