File: //usr/lib/python3/dist-packages/twisted/test/__pycache__/test_log.cpython-38.pyc
U
��W[� � @ s� d Z ddlmZmZmZ ddlmZmZ ddl Z ddl
Z
ddlZddlZddl
Z
ddlZddlmZ ddlmZ ddlmZ ddlmZmZ dd lmZ dd
lmZ ddlmZmZm Z mZ! G dd
� d
e"�Z#G dd� dej$�Z%G dd� dej$�Z&G dd� de'�Z(e�)e(� G dd� d�Z*G dd� d�Z+G dd� de*e+�Z,G dd� d�Z-G dd� de-ej$�Z.G dd� de-ej$�Z/G d d!� d!ej$�Z0G d"d#� d#ej$�Z1G d$d%� d%ej$�Z2G d&d'� d'ej$�Z3dS )(z"
Tests for L{twisted.python.log}.
� )�division�absolute_import�print_function)�_PY3�NativeStringION)�IOBase)�reload)�unittest)�log�failure)�handlerAndBytesIO)�LogPublisher)�LoggingFile�LogLevel�LogBeginnerr
c @ s e Zd ZdZdS )�FakeWarningz
A unique L{Warning} subclass used by tests for interactions of
L{twisted.python.log} with the L{warnings} module.
N)�__name__�
__module__�__qualname__�__doc__� r r �7/usr/lib/python3/dist-packages/twisted/test/test_log.pyr s r c @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dS )�TextFromEventDictTestsz)
Tests for L{textFromEventDict}.
c C s$ t dd�}t�|�}| �|d� dS )zj
The C{"message"} value, when specified, is concatenated to generate the
message.
)�a�b�c)�messageza b cN��dictr
�textFromEventDict�assertEqual��self� eventDict�textr r r �test_message- s
z#TextFromEventDictTests.test_messagec C s* t ddddd�}t�|�}| �|d� dS )zW
The C{"format"} value, when specified, is used to format the message.
r r zHello, %(foo)s!Zdude)r �isError�format�foozHello, dude!Nr r! r r r �test_format8 s �
z"TextFromEventDictTests.test_formatc C s$ t ddd�}t�|�}| �|� dS )zb
If C{"format"} is unspecified and C{"message"} is empty, return
L{None}.
r r �r r&