+
    üÐj_  ã                   ób  € R t ^ RIHtHtHtHt ^ RIHtHtH	t	H
t
HtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHtHtHtHtHtHtHtHtHt ^ RIHt ^ RIH t  ^R	I!H"t"H#t#H$t$H%t%H&t& ]]]$,          .]$3,          t'](t)R
PT                  t+RPT                  t, ! R R] 4      t- ! R R] 4      t. ! R R] 4      t/R# )z1
Tests for L{twisted.trial._dist.test.matchers}.
)ÚCallableÚSequenceÚTupleÚType)ÚanythingÚassert_thatÚcontainsÚcontains_stringÚequal_toÚnot_)ÚMatcher)ÚStringDescription)Úgiven)	ÚbinaryÚbooleansÚintegersÚjustÚlistsÚone_ofÚsampled_fromÚtextÚtuples)ÚFailure)ÚSynchronousTestCase)ÚHasSumÚIsSequenceOfÚSÚ	isFailureÚsimilarFrameÚ ó    c            
       ó  a € ] tR t^!t o Rt]! ]! ]! ]! 4       4      ]	! ]
4      4      ]! ]! ]! 4       4      ]	! ]4      4      ]! ]! ]! 4       4      ]	! ]4      4      4      t]! ]4      V 3R lR l4       t]! ]4      V 3R lR l4       tRtV tR# )ÚHasSumTestsz
Tests for L{HasSum}.
c                óZ   <€ V ^8„  d   QhRS[ S[S[,          S[S[,          3,          RR/# ©é   ÚsummableÚreturnN©r   r   r   ÚSummer)ÚformatÚ__classdict__s   "€ÚH/usr/lib/python3/dist-packages/twisted/trial/_dist/test/test_matchers.pyÚ__annotate__ÚHasSumTests.__annotate__-   s-   ø€ ÷ 4ñ 4¡U©8±A­;¹¹q½	Ð+AÕ%Bð 4Àtñ 4r    c                óð   € Vw  r#V! V4      pV! . 4      p\        \        V4      V4      p\        4       p\        VP	                  W'4      \        R4      4       \        \        V4      \        R4      4       R# )zí
L{HasSum} matches a sequence if the elements sum to a value matched by
the parameterized matcher.

:param summable: A tuple of a sequence of values to try to match and a
    function which can compute the correct sum for that sequence.
Tr   N)r   r
   r   r   ÚmatchesÚstr)Úselfr&   ÚseqÚsumFuncÚexpectedÚzeroÚmatcherÚdescriptions   &&      r,   Útest_matchesÚHasSumTests.test_matches,   s`   € ð  ‰ˆÙ˜3“<ˆÙ�r‹{ˆÜœ (Ó+¨TÓ2ˆä'Ó)ˆÜ�G—O‘O CÓ5´xÀ³~ÔFÜ”C˜Ó$¤h¨r£lÖ3r    c                óZ   <€ V ^8„  d   QhRS[ S[S[,          S[S[,          3,          RR/# r$   r(   )r*   r+   s   "€r,   r-   r.   ?   s;   ø€ ÷ Lñ LáÙ‘Q�KÙ‘1�Iðõ
ðLð 
ñLr    c                óh  € Vw  r#V! . 4      p\        \        4       4      p\        WT4      p\        4       p\	        VP                  W'4      \        R4      4       \        4       pVP                  V4       \        V4      p	\	        V	\        R4      4       \	        V	\        \        V4      4      4       R# )z˜
L{HasSum} does not match a sequence if the elements do not sum to a
value matched by the parameterized matcher.

:param summable: See L{test_matches}.
Fza sequence with sumN)
r   r   r   r   r   r0   r
   Úappend_description_ofr1   r	   )
r2   r&   r3   r4   r6   Ú
sumMatcherr7   ÚactualDescriptionÚsumMatcherDescriptionÚ	actualStrs
   &&        r,   Útest_mismatchesÚHasSumTests.test_mismatches>   s‘   € ð  ‰ˆÙ�r‹{ˆä!%¤h£jÓ!1ˆ
Ü˜Ó*ˆä-Ó/ÐÜ�G—O‘O CÓ;¼XÀe»_ÔMä 1Ó 3ÐØ×3Ñ3°JÔ?ÜÐ)Ó*ˆ	Ü�IœÐ/DÓEÔFÜ�Iœ¬sÐ3HÓ/IÓJÖKr    © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r   Ú	concatIntr   Ú	concatStrr   ÚconcatBytesÚ	summablesr   r9   rB   Ú__static_attributes__Ú__classdictcell__©r+   s   @r,   r"   r"   !   sˆ   ø‡ € ññ Ù‰u‘X“ZÓ ¡$ y£/Ó2Ù‰u‘T“V‹}™d 9›oÓ.Ù‰u‘V“X‹¡ [Ó 1Ó2ó€Iñ ˆ9Ó÷4ó ð4ñ" ˆ9Ó÷Ló öLr    r"   c                   óÀ   a € ] tR t^\t o Rt]! ]! 4       4      t]! ]	! ^ RR7      4      V 3R lR l4       t
]! ]	! ^ RR7      ]	! ^ RR7      4      V 3R lR l4       tRtV tR	# )
ÚIsSequenceOfTestsz
Tests for L{IsSequenceOf}.
iè  )Ú	min_valueÚ	max_valuec                ó$   <€ V ^8„  d   QhRS[ RR/# )r%   ÚnumItemsr'   N©Úint)r*   r+   s   "€r,   r-   ÚIsSequenceOfTests.__annotate__d   s   ø€ ÷ :ñ :¡Sð :¨Tñ :r    c                óÚ   € R.V,          p\        \        R4      4      p\        4       p\        VP	                  W$4      \        R4      4       \        \        V4      \        R4      4       R# )z¡
L{IsSequenceOf} matches a sequence if all of the elements are
matched by the parameterized matcher.

:param numItems: The length of a sequence to try to match.
Tr   N)r   r
   r   r   r0   r1   )r2   rV   r3   r7   r?   s   &&   r,   r9   ÚIsSequenceOfTests.test_matchesc   sR   € ð ˆf�xÕˆÜœx¨›~Ó.ˆä-Ó/ÐÜ�G—O‘O CÓ;¼XÀd»^ÔLÜ”CÐ)Ó*¬H°R«LÖ9r    c                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# )r%   Ú	numBeforeÚnumAfterr'   NrW   )r*   r+   s   "€r,   r-   rY   s   s"   ø€ ÷ 
ñ 
©ð 
¹ð 
Àñ 
r    c                ó<  € R.V,          R.,           R.V,          ,           p\        \        R4      4      p\        4       p\        VP	                  W54      \        R4      4       \        V4      p\        V\        R4      4       \        V\        RV 24      4       R# )as  
L{IsSequenceOf} does not match a sequence if any of the elements
are not matched by the parameterized matcher.

:param numBefore: In the sequence to try to match, the number of
    elements expected to match before an expected mismatch.

:param numAfter: In the sequence to try to match, the number of
    elements expected expected to match after an expected mismatch.
TFza sequence containing onlyznot sequence with element #N)r   r
   r   r   r0   r1   r	   )r2   r]   r^   r3   r7   r?   rA   s   &&&    r,   rB   Ú!IsSequenceOfTests.test_mismatchesr   s†   € ð ˆf�yÕ  E 7Õ*¨d¨V°hÕ->Õ>ˆÜœx¨›~Ó.ˆä-Ó/ÐÜ�G—O‘O CÓ;¼XÀe»_ÔMÜÐ)Ó*ˆ	Ü�IœÐ/KÓLÔMÜØ”Ð)DÀYÀKÐ'PÓQö	
r    rD   N)rE   rF   rG   rH   rI   r   r   Ú	sequencesr   r   r9   rB   rN   rO   rP   s   @r,   rR   rR   \   sa   ø‡ € ññ ‘h“jÓ!€Iá
‰8˜a¨4Ô0Ó1÷:ó 2ð:ñ ‰8˜a¨4Ô0±(ÀQÐRVÔ2WÓX÷
ó Yö
r    rR   c                   óž   a € ] tR t^‹t o Rt]! ]! ]]]	.4      4      V 3R lR l4       t
]! ]! ]]]	.4      4      V 3R lR l4       tR tRtV tR# )	ÚIsFailureTestsz
Tests for L{isFailure}.
c                ó4   <€ V ^8„  d   QhRS[ S[,          RR/# ©r%   ÚexcTyper'   N©r   ÚBaseException)r*   r+   s   "€r,   r-   ÚIsFailureTests.__annotate__‘   s    ø€ ÷ 
>ñ 
>¡D©Õ$7ð 
>¸Dñ 
>r    c                ó˜   € \        \        V4      R7      p\        V! 4       4      p\        VP	                  V4      \        R4      4       R# )zž
L{isFailure} matches instances of L{Failure} with matching
attributes.

:param excType: An exception type to wrap in a L{Failure} to be
    matched against.
)ÚtypeTN)r   r
   r   r   r0   ©r2   rf   r7   Úfailures   &&  r,   r9   ÚIsFailureTests.test_matches�   s6   € ô ¤¨'Ó!2Ô3ˆÜ™'›)Ó$ˆÜ�G—O‘O GÓ,¬h°t«nÖ=r    c                ó4   <€ V ^8„  d   QhRS[ S[,          RR/# re   rg   )r*   r+   s   "€r,   r-   ri   ž   s    ø€ ÷ 
?ñ 
?¡t©MÕ':ð 
?¸tñ 
?r    c                ó¼   € \        \        V4      \        \        4       4      R7      p\	        V! 4       4      p\        VP                  V4      \        R4      4       R# )z­
L{isFailure} does not match instances of L{Failure} with
attributes that don't match.

:param excType: An exception type to wrap in a L{Failure} to be
    matched against.
)rk   ÚotherFN)r   r
   r   r   r   r   r0   rl   s   &&  r,   rB   ÚIsFailureTests.test_mismatches�   s?   € ô ¤¨'Ó!2¼$¼x»zÓ:JÔKˆÜ™'›)Ó$ˆÜ�G—O‘O GÓ,¬h°u«oÖ>r    c                óð   €  \        R4      h  \         d    \        4       p Mi ; i\        4       p\	        \        \        RR4      4      R7      p\        TP                  Y4      \        R4      T4       R# )zU
The L{similarFrame} matcher matches elements of the C{frames} list
of a L{Failure}.
zOh noÚtest_framesÚtest_matchers)ÚframesTN)
Ú
ValueErrorrh   r   r   r   r   r   r   r0   r
   )r2   Úfr?   r7   s   &   r,   rt   ÚIsFailureTests.test_framesª   sl   € ð
	Ü˜WÓ%Ð%øÜô 	Ü“	ŠAð	úô .Ó/ÐÜÜœL¨¸ÓHÓIô
ˆô 	Ø�O‰O˜AÓ1Ü�T‹NØö	
s   ‚ �%¤%rD   N)rE   rF   rG   rH   rI   r   r   rw   ÚZeroDivisionErrorÚRuntimeErrorr9   rB   rt   rN   rO   rP   s   @r,   rc   rc   ‹   sb   ø‡ € ññ ‰<˜Ð%6¸ÐEÓFÓG÷
>ó Hð
>ñ ‰<˜Ð%6¸ÐEÓFÓG÷
?ó Hð
?÷
ð 
r    rc   N)0rI   Útypingr   r   r   r   Úhamcrestr   r   r   r	   r
   r   Úhamcrest.core.matcherr   Ú hamcrest.core.string_descriptionr   Ú
hypothesisr   Úhypothesis.strategiesr   r   r   r   r   r   r   r   r   Útwisted.python.failurer   Útwisted.trial.unittestr   Úmatchersr   r   r   r   r   r)   ÚsumrJ   ÚjoinrK   rL   r"   rR   rc   rD   r    r,   Ú<module>r‡      s•   ðñ÷ 3Ó 2ç U× UÝ )Ý >Ý ÷
÷ 
õ 
õ +Ý 6ß FÕ Fà	�8˜A•;�- Ð"Õ	#€Ø€	Ø�G‰G€	Ø�h‰h€ô8LÐ%ô 8Lôv,
Ð+ô ,
ô^1
Ð(ö 1
r    