AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/hyperlink/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/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

Anon7 - 2022
AnonSec Team