+
    ¾¾jk  ã                  ó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# )u’  Coverage tests for uncovered branches in :mod:`icalendar.prop.org`.

These tests target the branches identified in the coverage survey:

- ``vOrg.__eq__`` â€” the ``isinstance`` False branch (comparing with non-vOrg).
- ``vOrg.__repr__`` â€” string representation.
- ``vOrg.from_jcal`` â€” the happy path (valid jCal with string fields) and
  the ``validate_value_type`` loop (non-string field value).
)ÚannotationsN)ÚJCalParsingError©ÚvOrgc                  ó2   € ] tR t^tRtR tR tR tR tRt	R# )ÚTestVOrgEqualityzTest ``vOrg.__eq__``.c                óB   € \        R4      p\        R4      pW8X  g   Q hR# )z2Two vOrg instances with the same fields are equal.N©úABC Inc.Ú	MarketingÚSalesr   ©ÚselfÚorg1Úorg2s   &  Úe/home/ralf/ical-fahrzeuge/venv/lib/python3.14/site-packages/icalendar/tests/test_prop_org_coverage.pyÚtest_eq_same_fieldsÚ$TestVOrgEquality.test_eq_same_fields   s"   € äÐ6Ó7ˆÜÐ6Ó7ˆØŒ|ÐŠ|ó    c                óB   € \        R4      p\        R4      pW8w  g   Q hR# )z7Two vOrg instances with different fields are not equal.N©r
   r   )r
   r   r   r   s   &  r   Útest_eq_different_fieldsÚ)TestVOrgEquality.test_eq_different_fields   s"   € äÐ-Ó.ˆÜÐ)Ó*ˆØŒ|ÐŠ|r   c                óB   € \        R4      p\        R4      pW8w  g   Q hR# )zCTwo vOrg instances with a different number of fields are not equal.Nr   r	   r   r   s   &  r   Ú"test_eq_different_number_of_fieldsÚ3TestVOrgEquality.test_eq_different_number_of_fields"   s"   € äÐ-Ó.ˆÜÐ6Ó7ˆØŒ|ÐŠ|r   c                ód   € \        R4      pVR8w  g   Q hVR8w  g   Q hV^*8w  g   Q hVR8w  g   Q hR# )zCA vOrg is not equal to a non-vOrg object (isinstance False branch).zABC Inc.;MarketingNr   r   )r   Úorgs   & r   Útest_eq_non_vorg_objectÚ(TestVOrgEquality.test_eq_non_vorg_object(   sC   € äÐ,Ó-ˆØÐ*Ô*Ð*Ð*ØÐ/Ô/Ð/Ð/Ø�bŒyÐˆyØ�dŒ{ÐŠ{r   © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   Ú__static_attributes__r    r   r   r   r      s   † Ùòòòör   r   c                  ó,   € ] tR t^1tRtR tR tR tRtR# )ÚTestVOrgReprzTest ``vOrg.__repr__``.c                óv   € \        R4      p\        V4      pVP                  R4      '       g   Q hRV9   g   Q hR# )z2repr includes the class name and the fields tuple.zvOrg(z"('ABC Inc.', 'Marketing', 'Sales')Nr	   )r   ÚreprÚ
startswith©r   r   Úresults   &  r   Ú(test_repr_contains_class_name_and_fieldsÚ5TestVOrgRepr.test_repr_contains_class_name_and_fields4   s;   € äÐ5Ó6ˆÜ�c“ˆØ× Ñ  ×)Ò)Ð)Ð)Ø3°vÔ=Ð=Ò=r   c                ó^   € \        RRR/R7      p\        V4      pRV9   g   Q hRV9   g   Q hR# )zrepr includes the params.ÚLANGUAGEÚen)Úparamszparams=Nr   )r   r*   r,   s   &  r   Útest_repr_contains_paramsÚ&TestVOrgRepr.test_repr_contains_params;   s9   € äÐ,°jÀ$Ð5GÔHˆÜ�c“ˆØ˜FÔ"Ð"Ð"Ø˜VÔ#Ð#Ò#r   c                ót   € \        R4      p\        V4      p\        V\        4      '       g   Q hRV9   g   Q hR# )z*repr is a string, not the same as to_ical.r
   Nr   )r   r*   Ú
isinstanceÚstrr,   s   &  r   Ú(test_repr_round_trip_not_equal_to_stringÚ5TestVOrgRepr.test_repr_round_trip_not_equal_to_stringB   s7   € äÐ,Ó-ˆÜ�c“ˆÜ˜&¤#×&Ò&Ð&Ð&Ø˜VÔ#Ð#Ò#r   r    N)	r!   r"   r#   r$   r%   r.   r4   r9   r&   r    r   r   r(   r(   1   s   † Ù!ò>ò$ö$r   r(   c                  óD   € ] tR t^JtRtR tR tR tR tR t	R t
R tR	tR
# )ÚTestVOrgFromJcalzTest ``vOrg.from_jcal``.c                óŽ   € R/ RRRR.p\         P                  ! V4      pVP                  R8X  g   Q hVP                  / 8X  g   Q hR# )z,Parse a valid jCal ORG property into a vOrg.r   Útextr
   r   r   Nr	   ©r   Ú	from_jcalÚfieldsr3   ©r   Újcalr   s   &  r   Útest_from_jcal_validÚ%TestVOrgFromJcal.test_from_jcal_validM   sG   € à�r˜6 :¨{¸GÐDˆÜ�nŠn˜TÓ"ˆØ�z‰zÐ?Ô?Ð?Ð?Ø�z‰z˜RÔÐÒr   c                ó°   € R/ RR.p\         P                  ! V4      pVP                  R8X  g   Q hVP                  R8X  g   Q hVP                  R8X  g   Q hR# )z:Parse a jCal ORG property with only the organization name.r   r>   r
   N)r
   r    )r   r@   rA   ÚnameÚunitsrB   s   &  r   Útest_from_jcal_single_fieldÚ,TestVOrgFromJcal.test_from_jcal_single_fieldT   sR   € à�r˜6 :Ð.ˆÜ�nŠn˜TÓ"ˆØ�z‰z˜]Ô*Ð*Ð*Ø�x‰x˜:Ô%Ð%Ð%Ø�y‰y˜BŒÐŠr   c                óž   € RRR/RRR.p\         P                  ! V4      pVP                  R8X  g   Q hVP                  R,          R8X  g   Q hR# )	z.Parse a jCal ORG property that has parameters.r   Úlanguager2   r>   r
   r   Nr   r?   rB   s   &  r   Útest_from_jcal_with_paramsÚ+TestVOrgFromJcal.test_from_jcal_with_params\   sO   € à˜
 DÐ)¨6°:¸{ÐKˆÜ�nŠn˜TÓ"ˆØ�z‰zÐ6Ô6Ð6Ð6Ø�z‰z˜*Õ%¨Ô-Ð-Ò-r   c                ó´   € \        R4      pVP                  R4      p\         P                  ! V4      pW18X  g   Q hVP                  VP                  8X  g   Q hR# )z4to_jcal and from_jcal round-trip preserves the vOrg.r   N)r
   zNorth American Divisionr   )r   Úto_jcalr@   rA   )r   ÚoriginalrC   Úparseds   &   r   Útest_from_jcal_round_tripÚ*TestVOrgFromJcal.test_from_jcal_round_tripc   sM   € äÐLÓMˆØ×Ñ Ó&ˆÜ—’ Ó%ˆØÔ!Ð!Ð!Ø�}‰} §¡Ô/Ð/Ò/r   c                óÂ   € R/ R^{R.p\         P                  ! \        RR7      ;_uu_ 4        \        P                  ! V4       RRR4       R#   + '       g   i     R# ; i)z1A non-string field value raises JCalParsingError.r   r>   r   z+\[3\] in vOrg: The value must be a string\.©ÚmatchN©ÚpytestÚraisesr   r   r@   ©r   rC   s   & r   Útest_from_jcal_non_string_fieldÚ0TestVOrgFromJcal.test_from_jcal_non_string_fieldk   sL   € à�r˜6 3¨Ð4ˆÜ�]Š]ÜØ@÷
ö 
ô �NŠN˜4Ô ÷	
÷ 
÷ 
ò 
úó   ¬AÁA	c                óÂ   € R/ RRR.p\         P                  ! \        RR7      ;_uu_ 4        \        P                  ! V4       RRR4       R#   + '       g   i     R# ; i)z6A non-string field value at a later index also raises.r   r>   r
   iÈ  z+\[4\] in vOrg: The value must be a string\.rV   NrX   r[   s   & r   Ú*test_from_jcal_non_string_field_at_index_4Ú;TestVOrgFromJcal.test_from_jcal_non_string_field_at_index_4t   sL   € à�r˜6 :¨sÐ3ˆÜ�]Š]ÜØ@÷
ö 
ô �NŠN˜4Ô ÷	
÷ 
÷ 
ò 
úr^   c                ó¾   € R/ R.p\         P                  ! \        RR7      ;_uu_ 4        \        P                  ! V4       RRR4       R#   + '       g   i     R# ; i)zA jCal property with fewer than 4 elements raises JCalParsingError.

This is caught by ``JCalParsingError.validate_property``.
r   r>   z<in vOrg: The property must be a list with at least 4 items\.rV   NrX   r[   s   & r   Útest_from_jcal_too_short_raisesÚ0TestVOrgFromJcal.test_from_jcal_too_short_raises}   sJ   € ð
 �r˜6Ð"ˆÜ�]Š]ÜØQ÷
ö 
ô �NŠN˜4Ô ÷	
÷ 
÷ 
ò 
ús   ªAÁA	r    N)r!   r"   r#   r$   r%   rD   rI   rM   rS   r\   r`   rc   r&   r    r   r   r<   r<   J   s(   † Ù"ò òò.ò0ò!ò!ö
!r   r<   )r%   Ú
__future__r   rY   Úicalendar.errorr   Úicalendar.propr   r   r(   r<   r    r   r   Ú<module>rh      s6   ðñõ #ã å ,Ý ÷ñ ÷<$ñ $÷2=!ó =!r   