관리-도구
편집 파일: test_popen.cpython-311.pyc
� �܋f[ � � � d dl Z d dl mZmZ d dlmZ d dlmZ d dlmZm Z m Z d dlmZm Z d dlmZ d dlZ G d� d e� � Z G d � de� � ZdS )� N)�PIPE�STDOUT)�TestCase)�call)�ShouldRaise�compare�Replacer)� MockPopen�PopenBehaviour)�PY_310_PLUSc �" � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z!d � Z"d!� Z#d"� Z$d#� Z%d$� Z&d%� Z'd&� Z(d'� Z)d(� Z*d)� Z+d*� Z,d+� Z-d,� Z.d-� Z/d.� Z0d/S )0�Testsc � � t � � }|� d� � |dt t �� � }t |j d� � t d |j � � |� � � \ }}t |d� � t |d� � t |j d� � t t j ddd�� � t j � � � g|j j � � d S �N� a command��stdout�stderr�� � r ����r r �r �set_commandr r �pid� returncode�communicater �Popen�Popen_instance�mock�method_calls��selfr �process�out�errs �n/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/tests/test_popen.py�test_command_min_argszTests.test_command_min_args s� � ����� ���+�&�&�&��%��D��>�>�>�����T�"�"�"���g�(�)�)�)��&�&�(�(���S� ��S������S������"�A�&�&�&��� �;�r�"�=�=�=��#�/�/�1�1�� �:�*� ,� ,� ,� ,� ,r c � � t � � }|� ddddd� � |dt t �� � }t |j d� � t d |j � � |� � � \ }}t |d� � t |d� � t |j d� � t t j ddd�� � t j � � � g|j j � � d S ) Nr � out� err� �Y r r r r r"