Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ 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 : |
o �b� � @ s: d dl mZ d dlmZ d dlmZ G dd� dej�ZdS )� )�text)� attributes)�unittestc @ sX e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� ZdS )�FormattedTextTestsz. Tests for assembling formatted text. c C s | � 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_trivialc C � | � t�tjd �d� dS )z� The bold formatting attribute, L{A.bold}, emits the VT102 control sequence to enable bold when flattened. r z[1mHello, world.N)r r r r �boldr r r r � test_bold r zFormattedTextTests.test_boldc C r )z� The underline formatting attribute, L{A.underline}, emits the VT102 control sequence to enable underlining when flattened. r z[4mHello, world.N)r r r r � underliner r r r �test_underline! � �z!FormattedTextTests.test_underlinec C r )z� The blink formatting attribute, L{A.blink}, emits the VT102 control sequence to enable blinking when flattened. r z[5mHello, world.N)r r r r �blinkr r r r � test_blink+ r zFormattedTextTests.test_blinkc C r )z� The reverse-video formatting attribute, L{A.reverseVideo}, emits the VT102 control sequence to enable reversed video when flattened. r z[7mHello, world.N)r r r r �reverseVideor r r r �test_reverseVideo4 r z$FormattedTextTests.test_reverseVideoc C s0 | � t�tjtjdtjd df �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�.z[1;5mHello[0;5m world[1;5m.N)r r r r r r r r r r � test_minus>