관리-도구
편집 파일: test_diff.cpython-311.pyc
� �܋f| � �: � d dl mZ d dlmZ G d� de� � ZdS )� )�TestCase)�diffc � � e Zd Zd� Zd� ZdS )�TestDiffc �� � t dd� � }d}| � d� |� d� � D � � d� |� d� � D � � d|�d|��� � d S )Nz3 line1 line2 line3 z: line1 line changed line3 zr--- first +++ second @@ -1,5 +1,5 @@ line1 - line2 + line changed line3 c �6 � g | ]}|� � � ��S � ��strip��.0�lines �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/tests/test_diff.py� <listcomp>z)TestDiff.test_example.<locals>.<listcomp> s � �;�;�;�d�T�Z�Z�\�\�;�;�;� � c �6 � g | ]}|� � � ��S r r r s r r z)TestDiff.test_example.<locals>.<listcomp> s � �9�9�9�d�T�Z�Z�\�\�9�9�9r � != )r �assertEqual�split��self�actual�expecteds r �test_examplezTestDiff.test_example s� � �� � � � �� �� ���;�;�h�n�n�T�&:�&:�;�;�;�9�9�f�l�l�4�&8�&8�9�9�9�9�&�h�h���/� � � � � r c �d � t dd� � }d}| � ||d|�d|��� � d S )N�x�yz&--- first +++ second @@ -1 +1 @@ -x +yr r )r r r s r �test_no_newlineszTestDiff.test_no_newlines# sL � ��c�3����?�������F�&�h�h���/� � � � � r N)�__name__� __module__�__qualname__r r r r r r r s2 � � � � � �� � �6 � � � � r r N)�unittestr �testfixturesr r r r r �<module>r% s] �� � � � � � � � � � � � �$ � $ � $ � $ � $ �x� $ � $ � $ � $ � $ r