Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/logger/test/__pycache__/ |
Upload File : |
o �b�1 � @ s� d Z ddlZddlmZmZmZmZmZmZm Z m Z ddlmZ ddl mZ ddlmZ ddlmZmZ dd lmZmZ dd lmZ ddlmZ ddlmZ dd lmZ dejdee dee ddfdd�Z G dd� dej�Z!dS )z+ Test cases for L{twisted.logger._global}. � N)�IO�Any�List�Optional�TextIO�Tuple�Type�cast)�Failure)�unittest� )�textFileLogObserver)�MORE_THAN_ONCE_WARNING�LogBeginner)�ILogObserver�LogEvent)�LogLevel)�Logger)�LogPublisher)�nextLine�test�actualEvents�expectedEvents�returnc st t |�t |�kr| �||� t� � |D ] }� t|�� �O � qdtdtf� fdd���fdd�|D �}| �||� dS )a7 Compare two sequences of log events, examining only the the keys which are present in both. @param test: a test case doing the comparison @param actualEvents: A list of log events that were emitted by a logger. @param expectedEvents: A list of log events that were expected by a test. �eventr c s, | � � }| �� D ]}|� vr|�|� q|S �N)�copy�keys�pop)r r �key)� allMergedKeys� �A/usr/lib/python3/dist-packages/twisted/logger/test/test_global.py�simplify* s �zcompareEvents.<locals>.simplifyc s g | ]}� |��qS r! r! ��.0r )r# r! r"