o
    .j                     @   sL   d Z ddlZddlmZmZ ejdefddZdd Zd	d
 Zdd Z	dS )zVTests for copying components.

See https://github.com/collective/icalendar/issues/899
    N)CalendarEventreturnc                  C   s   t jdd} tj| gdS )NTestdescription)subcomponents)r   newr   )event r   b/home/thesage/.local/lib/python3.10/site-packages/icalendar/tests/test_issue_899_copy_component.pycomponent_with_subcomponent   s   r   c                 C   s*   |   }t|jdksJ || usJ dS )z1We can copy a component and lose the subcomponentr   N)copylenr   )r   	calendar2r   r   r   &test_shallow_copy_without_subcomponent   s   r   c                 C   s^   | j dd}t|jdksJ || usJ | jd }|jd }||us%J |j|jus-J dS )%We can copy a component with a child.T	recursive   r   N)r   r   r   uid)r   r   event1event2r   r   r    test_full_copy_with_subcomponent   s   

r   c                  C   sh   t jdd} d| d _| jdd}|d jdksJ |d j| d jks&J |d j| d jus2J dS )r   r   r   enr   Tr   N)r   r	   LANGUAGEr   params)r   r   r   r   r   test_full_copy_with_parameters#   s   
r   )
__doc__pytest	icalendarr   r   fixturer   r   r   r   r   r   r   r   <module>   s    