관리-도구
편집 파일: test_outputcapture.cpython-311.pyc
� �܋f � �| � d dl Z d dlmZ d dlmZ d dlmZmZ ddlm Z G d� de e� � Z G d � d e� � ZdS )� N)�call)�TestCase)� OutputCapture�compare� )� CompareHelperc �D � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd S )�TestOutputCapturec � � t � � 5 }t d� � d d d � � n# 1 swxY w Y |� d� � d S )N� Bar! zBar!)r �printr ��self�os �v/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/tests/test_outputcapture.py�test_compare_stripsz%TestOutputCapture.test_compare_strips s� � � �_�_� ���(�O�O�O� � � � � � � � � � � ���� � � � � � � �&�����s �+�/�/c � � t d�� � 5 }t d� � d d d � � n# 1 swxY w Y | � d|j d�� � d S )NF)�strip_whitespacer z Bar!z*'\tBar!' (expected) != ' Bar! \n' (actual))r �message)r r �check_raisesr r s r �test_compare_doesnt_stripz+TestOutputCapture.test_compare_doesnt_strip s� � � �E� 2� 2� 2� �a��(�O�O�O� � � � � � � � � � � ���� � � � ������I�B� � � � � � s �-�1�1c �T � t � � 5 }t dt j �� � t dt j �� � t dt j �� � t dt j �� � d d d � � n# 1 swxY w Y |� d� � d S )N�hello��file�out�there�nowzhello out there now �r r �sys�stdout�stderrr r s r �test_stdout_and_stderrz(TestOutputCapture.test_stdout_and_stderr s� � � �_�_� *���'�� �+�+�+�+��%�c�j�)�)�)�)��'�� �+�+�+�+��%�c�j�)�)�)�)� *� *� *� *� *� *� *� *� *� *� *���� *� *� *� *� � � �,�-�-�-�-�-s �A-B�B�Bc � � t � � 5 }t dt j �� � d d d � � n# 1 swxY w Y |� d� � d S )Nu 日r u 日 )r r r r! r r s r �test_unicodezTestOutputCapture.test_unicode! s� � � �_�_� .���)�#�*�-�-�-�-� .� .� .� .� .� .� .� .� .� .� .���� .� .� .� .� � � �+�����s �7�;�;c �\ � t d�� � 5 }t dt j �� � t dt j �� � t dt j �� � t dt j �� � d d d � � n# 1 swxY w Y |� dd � � � d S )NT��separater r r r r zhello there zout now �r! r"