+
    m4ia  ã                   óp   € R t ^ RIH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 hyperlink.test.common
)ÚAny)ÚTestCase)ÚHyperlinkTestCasec                   ó   € ] tR t^	tRtRtR# )Ú_ExpectedExceptionú9An exception used to test HyperlinkTestCase.assertRaises.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú</usr/lib/python3/dist-packages/hyperlink/test/test_common.pyr   r   	   ó   † ÝCr   r   c                   ó   € ] tR t^tRtRtR# )Ú_UnexpectedExceptionr   r   Nr	   r   r   r   r   r      r   r   r   c                   óN   a € ] tR t^t o RtR tR tR tR tR t	R t
R tR	tV tR
# )ÚTestHyperlinkzTests for HyperlinkTestCasec                ó&   € \        R 4      V n        R# )ÚrunN)r   Úhyperlink_test©Úselfs   &r   ÚsetUpÚTestHyperlink.setUp   s   € ä/°Ó6ˆÖr   c                óŒ   a€ . oV3R lpV P                   P                  \        V^RR7       V P                  SRRR/3.4       R# )z¥HyperlinkTestCase.assertRaises does not raise an AssertionError
when given a callable that, when called with the provided
arguments, raises the expected exception.

c                  ó4   <€ SP                  W34       \        h©N)Úappendr   )ÚargsÚkwargsÚcalled_withs   *,€r   ÚraisesExpectedÚCTestHyperlink.test_assertRaisesWithCallable.<locals>.raisesExpected!   s   ø€ à×Ñ ˜~Ô.Ü$Ð$r   T)Úkeywordr'   N)é   )r   ÚassertRaisesr   ÚassertEqual)r   r%   r$   s   & @r   Útest_assertRaisesWithCallableÚ+TestHyperlink.test_assertRaisesWithCallable   sR   ø€ ð ˆõ	%ð
 	×Ñ×(Ñ(Ü °¸4ð 	)ô 	
ð 	×Ñ˜¨¨y¸$Ð.?Ð'@Ð&AÖBr   c                ór   € R p V P                   P                  \        V4       R#   \         d     R# i ; i)zrWhen given a callable that raises an unexpected exception,
HyperlinkTestCase.assertRaises raises that exception.

c                  ó   € \         hr    )r   ©r"   r#   s   *,r   ÚdoesNotRaiseExpectedÚ\TestHyperlink.test_assertRaisesWithCallableUnexpectedException.<locals>.doesNotRaiseExpected2   s   € ä&Ð&r   N©r   r)   r   r   )r   r0   s   & r   Ú0test_assertRaisesWithCallableUnexpectedExceptionÚ>TestHyperlink.test_assertRaisesWithCallableUnexpectedException+   s:   € ò	'ð	Ø×Ñ×,Ñ,Ü"Ð$8öøô $ô 	Úð	úó   … ' §6µ6c                ór   € R p V P                   P                  \        V4       R#   \         d     R# i ; i)z€HyperlinkTestCase.assertRaises raises an AssertionError when given
a callable that, when called, does not raise any exception.

c                  ó   € R # r    r   r/   s   *,r   ÚdoesNotRaiseÚMTestHyperlink.test_assertRaisesWithCallableDoesNotRaise.<locals>.doesNotRaiseD   s   € ár   N©r   r)   r   ÚAssertionError)r   r8   s   & r   Ú)test_assertRaisesWithCallableDoesNotRaiseÚ7TestHyperlink.test_assertRaisesWithCallableDoesNotRaise=   s5   € ò	ð	Ø×Ñ×,Ñ,Ô-?ÀÖNøÜô 	Úð	úr5   c                óÚ   € V P                   P                  \        4      ;_uu_ 4       p\        h  + '       g   i     M; iT P                  \	        XP
                  \        4      4       R# )zíHyperlinkTestCase.assertRaises does not raise an AssertionError
when used as a context manager with a suite that raises the
expected exception.  The context manager stores the exception
instance under its `exception` instance variable.

N)r   r)   r   Ú
assertTrueÚ
isinstanceÚ	exception)r   Úcms   & r   Útest_assertRaisesContextManagerÚ-TestHyperlink.test_assertRaisesContextManagerM   sK   € ð × Ñ ×-Ñ-Ô.@×AÔAÀRÜ$Ð$÷ B×Aúð 	�‰Ü�r—|‘|Ô%7Ó8ö	
s   ¨/¯?	c                ó¬   €  V P                   P                  \        4      ;_uu_ 4        \        h  + '       g   i     R# ; i  \         d     R# i ; i)z“When used as a context manager with a block that raises an
unexpected exception, HyperlinkTestCase.assertRaises raises
that unexpected exception.

Nr2   r   s   &r   Ú2test_assertRaisesContextManagerUnexpectedExceptionÚ@TestHyperlink.test_assertRaisesContextManagerUnexpectedException\   sC   € ð	Ø×$Ñ$×1Ñ1Ô2D×EÕEÜ*Ð*÷ F×EÐEûä#ô 	Úð	ús%   ‚'A ©0°A	»A ÁA ÁAÁAc                ó¶   €  V P                   P                  \        4      ;_uu_ 4         RRR4       R#   + '       g   i     R# ; i  \         d     R# i ; i)zˆHyperlinkTestcase.assertRaises raises an AssertionError when used
as a context manager with a block that does not raise any
exception.

Nr:   r   s   &r   Ú+test_assertRaisesContextManagerDoesNotRaiseÚ9TestHyperlink.test_assertRaisesContextManagerDoesNotRaisei   sC   € ð	Ø×$Ñ$×1Ñ1Ô2D×EÕEØ÷ F×E×EÒEûäô 	Úð	ús+   ‚'A	 ©5«A	 µA	Á A	 ÁA	 Á	AÁA)r   N)r
   r   r   r   r   r   r+   r3   r<   rC   rF   rI   r   Ú__classdictcell__)Ú__classdict__s   @r   r   r      s1   ø‡ € Ù%ò7òCò&ò$ò 
ò÷ð r   r   N)r   Útypingr   Úunittestr   Úcommonr   Ú	Exceptionr   r   r   r   r   r   Ú<module>rQ      s?   ðñõ Ý Ý %ôD˜ô DôD˜9ô Dôc�Hö cr   