o
    ÌÄ.j   ã                   @   s(   d Z ddlmZmZ dd„ Zdd„ ZdS )z2Test for Issue #950: with_uid method on Component.é    )ÚCalendarÚEventc                  C   sb   t ƒ } tƒ }| dd¡ | dd¡ |  |¡ |  d¡}t|ƒdks$J ‚|d  d¡dks/J ‚dS )z6Test that with_uid finds components with matching UID.Úuidztest-uid-12345Úsummaryz
Test Eventé   r   N)r   r   ÚaddÚadd_componentÚwith_uidÚlenÚget©ÚcalÚeventÚresult© r   úS/home/thesage/.local/lib/python3.10/site-packages/icalendar/tests/test_issue_950.pyÚtest_with_uid_finds_event   s   

r   c                  C   s<   t ƒ } tƒ }| dd¡ |  |¡ |  d¡}|g ksJ ‚dS )z9Test that with_uid returns empty list when UID not found.r   zsome-other-uidznonexistent-uidN)r   r   r   r   r	   r   r   r   r   Ú*test_with_uid_returns_empty_when_not_found   s   

r   N)Ú__doc__Ú	icalendarr   r   r   r   r   r   r   r   Ú<module>   s    