CasperSecurity

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

o

G�_a�@s\dZddlmZddlmZddlmZGdd�de�ZGdd	�d	e�Z	Gd
d�de�Z
dS)
z!
Tests for hyperlink.test.common
�)�Any)�TestCase�)�HyperlinkTestCasec@�eZdZdZdS)�_ExpectedException�9An exception used to test HyperlinkTestCase.assertRaises.N��__name__�
__module__�__qualname__�__doc__�rr�</usr/lib/python3/dist-packages/hyperlink/test/test_common.pyr	�rc@r)�_UnexpectedExceptionrNr	rrrrr
rrc@sHeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dS)�
TestHyperlinkzTests for HyperlinkTestCasecCstd�|_dS)N�run)r�hyperlink_test��selfrrr�setUpszTestHyperlink.setUpcs>g��fdd�}|jjt|ddd�|��dddifg�dS)	z�HyperlinkTestCase.assertRaises does not raise an AssertionError
        when given a callable that, when called with the provided
        arguments, raises the expected exception.

        cs��||f�t��N)�appendr��args�kwargs��called_withrr�raisesExpected!szCTestHyperlink.test_assertRaisesWithCallable.<locals>.raisesExpectedrT)�keyword)rr N)r�assertRaisesr�assertEqual)rrrrr�test_assertRaisesWithCallables�z+TestHyperlink.test_assertRaisesWithCallablecC�2dd�}z
|j�t|�WdStyYdSw)z�When given a callable that raises an unexpected exception,
        HyperlinkTestCase.assertRaises raises that exception.

        c_st�r)rrrrr�doesNotRaiseExpected2�z\TestHyperlink.test_assertRaisesWithCallableUnexpectedException.<locals>.doesNotRaiseExpectedN�rr!rr)rr%rrr�0test_assertRaisesWithCallableUnexpectedException+s
��z>TestHyperlink.test_assertRaisesWithCallableUnexpectedExceptioncCr$)z�HyperlinkTestCase.assertRaises raises an AssertionError when given
        a callable that, when called, does not raise any exception.

        c_sdSrrrrrr�doesNotRaiseDr&zMTestHyperlink.test_assertRaisesWithCallableDoesNotRaise.<locals>.doesNotRaiseN�rr!r�AssertionError)rr)rrr�)test_assertRaisesWithCallableDoesNotRaise=s�z7TestHyperlink.test_assertRaisesWithCallableDoesNotRaisecCs8|j�t��}t�1swY|�t|jt��dS)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�cmrrr�test_assertRaisesContextManagerMs�
�z-TestHyperlink.test_assertRaisesContextManagercCs>z|j�t��t�1s
wYWdStyYdSw)z�When used as a context manager with a block that raises an
        unexpected exception, HyperlinkTestCase.assertRaises raises
        that unexpected exception.

        Nr'rrrr�2test_assertRaisesContextManagerUnexpectedException\s��z@TestHyperlink.test_assertRaisesContextManagerUnexpectedExceptioncCsLz|j�t��
Wd�WdS1swYWdSty%YdSw)z�HyperlinkTestcase.assertRaises raises an AssertionError when used
        as a context manager with a block that does not raise any
        exception.

        Nr*rrrr�+test_assertRaisesContextManagerDoesNotRaiseis&��z9TestHyperlink.test_assertRaisesContextManagerDoesNotRaiseN)r
rrr
rr#r(r,r1r2r3rrrrrs
rN)r
�typingr�unittestr�commonr�	Exceptionrrrrrrr�<module>s
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY