관리-도구
편집 파일: test_main.cpython-311.pyc
� �܋f� � � � d dl Z d dlZd dlmZ d dlmZ d dlmZmZm Z m Z mZ d dlm Z G d� de � � Z G d� d e � � ZdS ) � N)�mock)�Loader)�build_suite� get_status�main�main_module� parse_args)�TestCasec �X � e Zd ZdZd� Zd� Zej � e d� � d� � � Z ej � e d� � d� � � Z ej d� � ej d� � ej � ej d � � d � � � � � � � ZdS )�TestMainzTests for tap.mainc � � ddg}t t j d� � }t ||�� � }| � d|� � dS )zAThe main function returns an error status if there were failures.� /bin/fakezfake.tap�w)�stream� N)�open�os�devnullr �assertEqual)�self�argvr �statuss �d/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/tests/test_main.py�test_exits_with_errorzTestMain.test_exits_with_error sK � ��Z�(���b�j�#�&�&���d�6�*�*�*������F�#�#�#�#�#� c � � t j � � }d|j _ | � dt |� � � � d S )NTr )r �Mock� wasSuccessful�return_valuer r )r �results r �test_get_successful_statusz#TestMain.test_get_successful_status s<