+
    ¾¾jÒ!  ã                   ór   € R t ^ RIHt ^ RIt^ RIHt ^ RIHt  ! R R4      t ! R R4      t ! R	 R
4      t	R# )z<Tests for issue #870: Add new() method to vCalAddress class.)ÚdatetimeN)ÚEvent)ÚvCalAddressc                   ó&  a € ] tR t^t o RtR tR tR tR t]	P                  P                  R. RO4      R 4       t]	P                  P                  RRR.4      R 4       t]	P                  P                  R. RO4      R 4       tR	 tR
 tR tRtV tR# )ÚTestVCalAddressNewz0Test the vCalAddress.new() method functionality.c                óŽ   € \         P                  ! R4      p\        V4      R8X  g   Q h\        VP                  4      ^ 8X  g   Q hR# )z*Test creating vCalAddress with email only.útest@test.comúmailto:test@test.comN)r   ÚnewÚstrÚlenÚparams©ÚselfÚaddrs   & Úm/home/ralf/ical-fahrzeuge/venv/lib/python3.14/site-packages/icalendar/tests/test_issue_870_vcaladdress_new.pyÚtest_new_with_email_onlyÚ+TestVCalAddressNew.test_new_with_email_only   s:   € ä�Š˜Ó/ˆä�4‹yÐ2Ô2Ð2Ð2Ü�4—;‘;Ó 1Ô$Ð$Ò$ó    c                óV   € \         P                  ! R4      p\        V4      R8X  g   Q hR# )z/Test that existing mailto: prefix is preserved.r	   N©r   r
   r   r   s   & r   Útest_new_with_mailto_prefixÚ.TestVCalAddressNew.test_new_with_mailto_prefix   s$   € ä�ŠÐ5Ó6ˆä�4‹yÐ2Ô2Ð2Ò2r   c                óp   € . ROpV F+  p\         P                  ! V4      p\        V4      V8X  d   K+  Q h	  R# )z'Test case-insensitive mailto: handling.N)zMAILTO:test@test.comzMailto:test@test.comzMailTo:test@test.comzmAiLtO:test@test.comr   )r   Ú
test_casesÚemailr   s   &   r   Ú%test_new_with_case_insensitive_mailtoÚ8TestVCalAddressNew.test_new_with_case_insensitive_mailto   s5   € ò
ˆ
ó  ˆEÜ—?’? 5Ó)ˆDÜ�t“9 Ö%Ð%Ð%ó  r   c                óŽ   € \         P                  ! RRR7      p\        V4      R8X  g   Q hVP                  R,          R8X  g   Q hR# )z,Test creating vCalAddress with CN parameter.r   ú	Test User©Úcnr	   ÚCNN©r   r
   r   r   r   s   & r   Útest_new_with_cn_parameterÚ-TestVCalAddressNew.test_new_with_cn_parameter(   s<   € ä�Š˜°;Ô?ˆä�4‹yÐ2Ô2Ð2Ð2Ø�{‰{˜4Õ  KÔ/Ð/Ò/r   c                ó�   € W/p\         P                  ! R/ VB p\        V4      R8X  g   Q hVP                  V,          V8X  g   Q hR# )z6Test vCalAddress.new() with various string parameters.r	   N©r   r#   )r   ÚargumentÚvalueÚ	parameterÚexpected_valueÚkwargsr   s   &&&&&  r   Útest_new_with_string_parametersÚ2TestVCalAddressNew.test_new_with_string_parameters/   sG   € ð2 Ð"ˆÜ�ŠÑ9°&Ñ9ˆä�4‹yÐ2Ô2Ð2Ð2Ø�{‰{˜9Õ%¨Ô7Ð7Ò7r   c                óŽ   € \         P                  ! RVR7      p\        V4      R8X  g   Q hVP                  R,          V8X  g   Q hR# )z+Test vCalAddress.new() with RSVP parameter.r   )Úrsvpr	   ÚRSVPNr#   )r   Ú
rsvp_valueÚexpected_paramr   s   &&& r   Útest_new_with_rsvp_parameterÚ/TestVCalAddressNew.test_new_with_rsvp_parameterN   s>   € ô �Š˜°ZÔ@ˆä�4‹yÐ2Ô2Ð2Ð2Ø�{‰{˜6Õ" nÔ4Ð4Ò4r   c                ó�   € W/p\         P                  ! R/ VB p\        V4      R8X  g   Q hVP                  V,          V8X  g   Q hR# )z8Test vCalAddress.new() with email delegation parameters.r	   Nr'   r#   )r   Údelegate_paramÚdelegate_valuer3   r+   r,   r   s   &&&&&  r   Útest_new_with_email_parametersÚ1TestVCalAddressNew.test_new_with_email_parameters\   sH   € ðP !Ð1ˆÜ�ŠÑ9°&Ñ9ˆä�4‹yÐ2Ô2Ð2Ð2Ø�{‰{˜>Õ*¨nÔ<Ð<Ò<r   c                ót  € \         P                  ! RRRRRRRRR	R
RR7      p\        V4      R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R	8X  g   Q hVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hR# )z.Test creating vCalAddress with all parameters.r   r   Ú
INDIVIDUALúsender@test.comúdelegate@test.comúldap://example.comúen-USÚACCEPTEDúREQ-PARTICIPANTTúsecretary@test.com)
r!   ÚcutypeÚdelegated_fromÚdelegated_toÚ	directoryÚlanguageÚpartstatÚroler0   Úsent_byr	   r"   ÚCUTYPEúDELEGATED-FROMúmailto:sender@test.comúDELEGATED-TOúmailto:delegate@test.comÚDIRÚLANGUAGEÚPARTSTATÚROLEr1   ÚTRUEúSENT-BYúmailto:secretary@test.comNr#   r   s   & r   Útest_new_with_all_parametersÚ/TestVCalAddressNew.test_new_with_all_parametersŠ   s2  € ä�ŠØØØØ,Ø,Ø*ØØØ"ØØ(ô
ˆô �4‹yÐ2Ô2Ð2Ð2Ø�{‰{˜4Õ  KÔ/Ð/Ð/Ø�{‰{˜8Õ$¨Ô4Ð4Ð4Ø�{‰{Ð+Õ,Ð0HÔHÐHÐHØ�{‰{˜>Õ*Ð.HÔHÐHÐHØ�{‰{˜5Õ!Ð%9Ô9Ð9Ð9Ø�{‰{˜:Õ&¨'Ô1Ð1Ð1Ø�{‰{˜:Õ&¨*Ô4Ð4Ð4Ø�{‰{˜6Õ"Ð&7Ô7Ð7Ð7Ø�{‰{˜6Õ" fÔ,Ð,Ð,Ø�{‰{˜9Õ%Ð)DÔDÐDÒDr   c                óÐ   € \         P                  ! RRRRR7      p\        V4      R8X  g   Q hRVP                  9  g   Q hRVP                  9  g   Q hRVP                  9  g   Q hR# )z&Test that None parameters are ignored.r   N)r!   rJ   r0   r	   r"   rT   r1   r#   r   s   & r   Ú%test_new_with_none_parameters_ignoredÚ8TestVCalAddressNew.test_new_with_none_parameters_ignored¦   sg   € ä�ŠØØØØô	
ˆô �4‹yÐ2Ô2Ð2Ð2Ø˜4Ÿ;™;Ô&Ð&Ð&Ø˜TŸ[™[Ô(Ð(Ð(Ø˜TŸ[™[Ô(Ð(Ò(r   c                óB  € \         P                  ! RRRR7      p\        P                  ! V.R7      pVP                  V.8X  g   Q hVP                  ^ ,          p\	        V4      R8X  g   Q hVP
                  R,          R8X  g   Q hVP
                  R,          R	8X  g   Q hR
# )z7Test that vCalAddress.new() works with Event attendees.r   r   T)r!   r0   )Ú	attendeesr	   r"   r1   rU   N)r   r
   r   r^   r   r   )r   r   ÚeventÚattendees   &   r   Útest_new_integration_with_eventÚ2TestVCalAddressNew.test_new_integration_with_event´   s‡   € ä�Š˜°;ÀTÔJˆÜ—	’	 T FÔ+ˆà�‰ 4 &Ô(Ð(Ð(Ø—?‘? 1Õ%ˆÜ�8‹}Ð 6Ô6Ð6Ð6Ø�‰˜tÕ$¨Ô3Ð3Ð3Ø�‰˜vÕ&¨&Ô0Ð0Ò0r   © N)r(   r)   r*   r+   ))rD   r<   rL   r<   )rD   ÚGROUPrL   rd   )rD   ÚRESOURCErL   re   )rD   ÚROOMrL   rf   )rJ   rB   rT   rB   )rJ   úOPT-PARTICIPANTrT   rg   )rJ   úNON-PARTICIPANTrT   rh   )rJ   ÚCHAIRrT   ri   )rI   úNEEDS-ACTIONrS   rj   )rI   rA   rS   rA   )rI   ÚDECLINEDrS   rk   )rI   Ú	TENTATIVErS   rl   )rI   Ú	DELEGATEDrS   rm   )rH   r@   rR   r@   )rH   úde-DErR   rn   )rG   r?   rQ   r?   )r2   r3   )TrU   )FÚFALSE)r7   r8   r3   r+   ))rE   r=   rM   rN   )rE   rN   rM   rN   )rF   r>   rO   rP   )rF   úMAILTO:delegate@test.comrO   rp   )rK   rC   rV   rW   )rK   rW   rV   rW   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r$   ÚpytestÚmarkÚparametrizer-   r4   r9   rX   r[   ra   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s»   ø‡ € Ù:ò%ò3ò&ò0ð ‡[�[×ÑØ<ò	
óñ*8ó+ð*8ð ‡[�[×ÑØ(àØð	
óñ5óð5ð ‡[�[×ÑØPò 	
ó#ñH=óI#ðH=òEò8)÷	1ð 	1r   r   c                   ó0   a € ] tR t^Àt o RtR tR tRtV tR# )ÚTestVCalAddressNewErrorCasesz.Test error cases for vCalAddress.new() method.c                ó®   € \         P                  ! \        4      ;_uu_ 4        \        P                  ! 4        RRR4       R#   + '       g   i     R# ; i)z&Test that email parameter is required.N©rv   ÚraisesÚ	TypeErrorr   r
   ©r   s   &r   Útest_new_requires_emailÚ4TestVCalAddressNewErrorCases.test_new_requires_emailÃ   s*   € ä�]Š]œ9×%Õ%Ü�OŠOÔ÷ &×%×%Ò%ús   £AÁA	c                ób  € \         P                  ! \        RR7      ;_uu_ 4        \        P                  ! ^{4       RRR4       \         P                  ! \        RR7      ;_uu_ 4        \        P                  ! R.4       RRR4       R#   + '       g   i     LV; i  + '       g   i     R# ; i)z!Test that email must be a string.zEmail must be a string, not int)ÚmatchNz Email must be a string, not listr   r€   rƒ   s   &r   Útest_new_email_must_be_stringÚ:TestVCalAddressNewErrorCases.test_new_email_must_be_stringÈ   si   € ä�]Š]œ9Ð,M×NÖNÜ�OŠO˜CÔ ÷ Oô �]Š]œ9Ð,N×OÖOÜ�OŠO˜_Ð-Ô.÷ PÑO÷ O×Nú÷ P×OÐOús   ¥B
Á(BÂ
B	ÂB.	rc   N)	rq   rr   rs   rt   ru   r„   rˆ   ry   rz   r{   s   @r   r~   r~   À   s   ø‡ € Ù8ò÷
/ð /r   r~   c                   ó6   a € ] tR t^Ñt o RtR tR tR tRtV t	R# )ÚTestVCalAddressNewExamplesz7Test examples that demonstrate vCalAddress.new() usage.c                óV   € \         P                  ! R4      p\        V4      R8X  g   Q hR# )z(Test basic usage example from docstring.r   r	   Nr   r   s   & r   Útest_basic_usage_exampleÚ3TestVCalAddressNewExamples.test_basic_usage_exampleÔ   s#   € ä�Š˜Ó/ˆÜ�4‹yÐ2Ô2Ð2Ò2r   c                ó    € \         P                  ! RRRR7      pVP                  R,          R8X  g   Q hVP                  R,          R8X  g   Q hR# )z,Test example with parameters from docstring.r   r   ri   )r!   rJ   r"   rT   N)r   r
   r   r   s   & r   Útest_with_parameters_exampleÚ7TestVCalAddressNewExamples.test_with_parameters_exampleÙ   sB   € ä�Š˜°;ÀWÔMˆØ�{‰{˜4Õ  KÔ/Ð/Ð/Ø�{‰{˜6Õ" gÔ-Ð-Ò-r   c           
     ó  € \         P                  ! R\        R^^^^ 4      R7      p\        P                  ! RRR7      pV.Vn        \        VP                  4      ^8X  g   Q hVP                  ^ ,          P                  R,          R8X  g   Q hR# )	z=Test that vCalAddress.new() integrates well with Event.new().ÚTestiê  )ÚsummaryÚstartr   r   r    r"   N)r   r
   r   r   r^   r   r   )r   r_   r   s   &  r   Útest_consistent_with_event_newÚ9TestVCalAddressNewExamples.test_consistent_with_event_newß   su   € ô —	’	 &´¸¸qÀ!ÀRÈÓ0KÔLˆÜ�Š˜°;Ô?ˆð  ˜&ˆŒÜ�5—?‘?Ó# qÔ(Ð(Ð(Ø�‰˜qÕ!×(Ñ(¨Õ.°+Ô=Ð=Ò=r   rc   N)
rq   rr   rs   rt   ru   r�   r�   r–   ry   rz   r{   s   @r   r‹   r‹   Ñ   s   ø‡ € ÙAò3ò
.÷	>ð 	>r   r‹   )
ru   r   rv   Ú	icalendarr   Úicalendar.propr   r   r~   r‹   rc   r   r   Ú<module>rš      s5   ðÙ Bå ã å Ý &÷r1ñ r1÷j/ñ /÷">ó >r   