+
    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# )_ExpectedException9An 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# )zHyperlinkTestCase.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   raisesExpectedCTestHyperlink.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)zHyperlinkTestCase.assertRaises raises an AssertionError when given
a callable that, when called, does not raise any exception.

c                      R # r    r   r/   s   *,r   doesNotRaiseMTestHyperlink.test_assertRaisesWithCallableDoesNotRaise.<locals>.doesNotRaiseD   s    r   Nr   r)   r   AssertionError)r   r8   s   & r   )test_assertRaisesWithCallableDoesNotRaise7TestHyperlink.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# )zHyperlinkTestCase.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AR$$ BA 	r||%78	
s   /?	c                     V P                   P                  \        4      ;_uu_ 4        \        h  + '       g   i     R# ; i  \         d     R# i ; i)zWhen 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12D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)zHyperlinkTestcase.assertRaises raises an AssertionError when used
as a context manager with a block that does not raise any
exception.

Nr:   r   s   &r   +test_assertRaisesContextManagerDoesNotRaise9TestHyperlink.test_assertRaisesContextManagerDoesNotRaisei   sC    	$$112D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   