File: //usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/test_text.cpython-310.pyc
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>