%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/hyperlink/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/hyperlink/test/__pycache__/test_common.cpython-312.pyc

�

G�_a��n�dZddlmZddlmZddlmZGd�de�ZGd�d	e�Z	Gd
�de�Z
y)
z!
Tests for hyperlink.test.common
�)�Any)�TestCase�)�HyperlinkTestCasec��eZdZdZy)�_ExpectedException�9An exception used to test HyperlinkTestCase.assertRaises.N��__name__�
__module__�__qualname__�__doc__���</usr/lib/python3/dist-packages/hyperlink/test/test_common.pyrr	���Crrc��eZdZdZy)�_UnexpectedExceptionr	Nr
rrrrr
rrrc�:�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
y	)
�
TestHyperlinkzTests for HyperlinkTestCasec�$�td�|_y)N�run)r�hyperlink_test��selfs r�setUpzTestHyperlink.setUps��/��6��rc���g��fd�}|jjt|dd��|j�dddifg�y)z�HyperlinkTestCase.assertRaises does not raise an AssertionError
        when given a callable that, when called with the provided
        arguments, raises the expected exception.

        c�6���j||f�t��N)�appendr)�args�kwargs�called_withs  �r�raisesExpectedzCTestHyperlink.test_assertRaisesWithCallable.<locals>.raisesExpected!s�������f�~�.�$�$rrT)�keyword)rr%N)r�assertRaisesr�assertEqual)rr$r#s  @r�test_assertRaisesWithCallablez+TestHyperlink.test_assertRaisesWithCallablesR�����	%�
	
���(�(����4�	)�	
�	
�����y�$�.?�'@�&A�Brc�j�d�}	|jjt|�y#t$rYywxYw)z�When given a callable that raises an unexpected exception,
        HyperlinkTestCase.assertRaises raises that exception.

        c��t�r)r�r!r"s  r�doesNotRaiseExpectedz\TestHyperlink.test_assertRaisesWithCallableUnexpectedException.<locals>.doesNotRaiseExpected2s��&�&rN�rr&rr)rr,s  r�0test_assertRaisesWithCallableUnexpectedExceptionz>TestHyperlink.test_assertRaisesWithCallableUnexpectedException+s:��	'�	����,�,�"�$8�
��$�	��	��� &�	2�2c�j�d�}	|jjt|�y#t$rYywxYw)z�HyperlinkTestCase.assertRaises raises an AssertionError when given
        a callable that, when called, does not raise any exception.

        c��yrrr+s  r�doesNotRaisezMTestHyperlink.test_assertRaisesWithCallableDoesNotRaise.<locals>.doesNotRaiseDs��rN�rr&r�AssertionError)rr2s  r�)test_assertRaisesWithCallableDoesNotRaisez7TestHyperlink.test_assertRaisesWithCallableDoesNotRaise=s5��	�	����,�,�-?��N���	��	�r/c��|jjt�5}t�#1swYnxYw|jt	j
t��y)a
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)rr&r�
assertTrue�
isinstance�	exception)r�cms  r�test_assertRaisesContextManagerz-TestHyperlink.test_assertRaisesContextManagerMsN���
 �
 �
-�
-�.@�
A�	%�R�$�$�	%�	%��	
����r�|�|�%7�8�	
s�'�0c��	|jjt�5t�#1swYyxYw#t$rYywxYw)z�When used as a context manager with a block that raises an
        unexpected exception, HyperlinkTestCase.assertRaises raises
        that unexpected exception.

        Nr-rs r�2test_assertRaisesContextManagerUnexpectedExceptionz@TestHyperlink.test_assertRaisesContextManagerUnexpectedException\sC��	��$�$�1�1�2D�E�
+�*�*�
+�
+��#�	��	�s�4�(�1�4�4�	A�Ac��	|jjt�5	ddd�y#1swYyxYw#t$rYywxYw)z�HyperlinkTestcase.assertRaises raises an AssertionError when used
        as a context manager with a block that does not raise any
        exception.

        Nr3rs r�+test_assertRaisesContextManagerDoesNotRaisez9TestHyperlink.test_assertRaisesContextManagerDoesNotRaiseisE��	��$�$�1�1�2D�E�
��
�
�
���	��	�s#�8�,�8�5�8�8�	A�AN)rrr
rrr(r.r5r;r=r?rrrrrs)��%�7�C�&�$� 

��rrN)r�typingr�unittestr�commonr�	Exceptionrrrrrr�<module>rDs?�����%�D��D�D�9�D�c�H�cr

Zerion Mini Shell 1.0