Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/conch/test/__pycache__/test_text.cpython-39.pyc
Ðазад
a k�h� � @ 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 ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/conch/test/test_text.py�test_trivial s �zFormattedTextTests.test_trivialc C s | � 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 s �zFormattedTextTests.test_boldc C s | � t�tjd �d� dS )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! s �z!FormattedTextTests.test_underlinec C s | � t�tjd �d� dS )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+ s �zFormattedTextTests.test_blinkc C s | � t�tjd �d� dS )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 ZreverseVideor r r r �test_reverseVideo4 s �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. ZHelloz world�.z[1;5mHello[0;5m world[1;5m.N)r r r r r r r r r r � test_minus>