/usr/lib/python3.9/site-packages/certbot/_internal/tests/display/__pycache__
a }|�g�5 � @ s� d Z ddlZddlZddlmZ ddlZddlmZ ddlmZ ddl mZ ddgZ g d �ZG d d� dej�ZG dd � d ej�Zedkr�e�e�ejdd� eg �� dS )z*Test :mod:`certbot._internal.display.obj`.� N)�mock)�errors)�obj)�util)ZFirstZDescription1)ZSecondZDescription2)�tag1�tag2�tag3c sF e Zd ZdZ� fdd�Ze�d�dd� �Zdd� Zd d � Z dd� Z d d� Ze�d�dd� �Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Ze�d"�d#d$� �Ze�d"�d%d&� �Ze�d"�d'd(� �Ze�d"�d)d*� �Zd+d,� Zd-d.� Zd/d0� Ze�d"�d1d2� �Zd3d4� Zd5d6� Zd7d8� Zd9d:� Z d;d<� Z!d=d>� Z"� Z#S )?�FileOutputDisplayTestz�Test stdout display. Most of this class has to deal with visual output. In order to test how the functions look to a user, uncomment the test_visual function. c s( t � �� t�� | _t�| jd�| _d S )NF)�super�setUpr � MagicMock�mock_stdout�display_objZFileDisplay� displayer��self�� __class__� �L/usr/lib/python3.9/site-packages/certbot/_internal/tests/display/obj_test.pyr s zFileOutputDisplayTest.setUp�$certbot._internal.display.obj.loggerc C s2 | j �dd� | jjjd d }|j�dd� d S )N�messageFr �Notifying user: %s�r �notificationr �write� call_args�debugZassert_called_with�r �mock_logger�stringr r r �test_notification_no_pause s z0FileOutputDisplayTest.test_notification_no_pausec C sF d}t j|dd�� | jjddd� W d � n1 s80 Y d S )N�1certbot._internal.display.util.input_with_timeoutZenter��return_valuer T�Zforce_interactive)r �patchr r �r �input_with_timeoutr r r �test_notification_pause$ s .z-FileOutputDisplayTest.test_notification_pausec C s&