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 :  /lib/python3/dist-packages/twisted/conch/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /lib/python3/dist-packages/twisted/conch/test/__pycache__/test_text.cpython-310.pyc
o

�b��@s:ddlmZddlmZddlmZGdd�dej�ZdS)�)�text)�
attributes)�unittestc@sXeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�ZdS)�FormattedTextTestsz.
    Tests for assembling formatted text.
    cCs|�t�tjd�d�dS)zu
        Using no formatting attributes produces no VT102 control sequences in
        the flattened output.
        �
Hello, world.N)�assertEqualr�assembleFormattedText�A�normal��self�r
�>/usr/lib/python3/dist-packages/twisted/conch/test/test_text.py�test_trivial��zFormattedTextTests.test_trivialcC�|�t�tjd�d�dS)z�
        The bold formatting attribute, L{A.bold}, emits the VT102 control
        sequence to enable bold when flattened.
        rzHello, world.N)rrrr	�boldrr
r
r�	test_boldrzFormattedTextTests.test_boldcCr)z�
        The underline formatting attribute, L{A.underline}, emits the VT102
        control sequence to enable underlining when flattened.
        rzHello, world.N)rrrr	�	underlinerr
r
r�test_underline!��z!FormattedTextTests.test_underlinecCr)z�
        The blink formatting attribute, L{A.blink}, emits the VT102 control
        sequence to enable blinking when flattened.
        rzHello, world.N)rrrr	�blinkrr
r
r�
test_blink+rzFormattedTextTests.test_blinkcCr)z�
        The reverse-video formatting attribute, L{A.reverseVideo}, emits the
        VT102 control sequence to enable reversed video when flattened.
        rzHello, world.N)rrrr	�reverseVideorr
r
r�test_reverseVideo4rz$FormattedTextTests.test_reverseVideoc	Cs0|�t�tjtjdtjddf�d�dS)z�
        Formatting attributes prefixed with a minus (C{-}) temporarily disable
        the prefixed attribute, emitting no VT102 control sequence to enable
        it in the flattened output.
        �Helloz world�.zHello world.N)rrrr	rrrr
r
r�
test_minus>s��zFormattedTextTests.test_minuscC�0|�t�tjtjjdtjjdf�d�dS)z�
        The foreground color formatting attribute, L{A.fg}, emits the VT102
        control sequence to set the selected foreground color when flattened.
        �Hello, �world!zHello, world!N)rrrr	r
�fg�red�greenrr
r
r�test_foregroundK���z"FormattedTextTests.test_foregroundcCr)z�
        The background color formatting attribute, L{A.bg}, emits the VT102
        control sequence to set the selected background color when flattened.
        rr zHello, world!N)rrrr	r
�bgr"r#rr
r
r�test_backgroundWr%z"FormattedTextTests.test_backgroundcCsn|�|jg�}|�t|�d�tj|�|jg�}|�t|�d�|�|ddt�|�|ddd�dS)zv
        L{twisted.conch.insults.text.flatten} emits a deprecation warning when
        imported or accessed.
        r��category�messagez�twisted.conch.insults.text.flatten was deprecated in Twisted 13.1.0: Use twisted.conch.insults.text.assembleFormattedText instead.N)�
flushWarnings�test_flattenDeprecatedr�lenr�flatten�DeprecationWarning)r�
warningsShownr
r
rr,cs
�z)FormattedTextTests.test_flattenDeprecatedN)
�__name__�
__module__�__qualname__�__doc__rrrrrrr$r'r,r
r
r
rr
s		
	

rN)	�twisted.conch.insultsr�twisted.conch.insults.textrr	�
twisted.trialr�TestCaserr
r
r
r�<module>s

Anon7 - 2022
AnonSec Team