Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/protocols/haproxy/test/__pycache__/test_v1parser.cpython-39.pyc
Ðазад
a k�hJ � @ sR d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z G dd� dej�Zd S ) z7 Test cases for L{twisted.protocols.haproxy.V1Parser}. � )�address)�unittest� )� _v1parser)�InvalidNetworkProtocol�InvalidProxyHeader�MissingAddressDatac @ s� e Zd ZdZdd�dd�Zdd�dd�Zdd�dd �Zdd�d d�Zdd�dd �Zdd�dd�Z dd�dd�Z dd�dd�Zdd�dd�Zdd�dd�Z dS )� V1ParserTestsz? Test L{twisted.protocols.haproxy.V1Parser} behaviour. N)�returnc C s | � ttjjd� dS )zT Test that an exception is raised when the PROXY header is missing. s NOTPROXY N)�assertRaisesr r �V1Parser�parse��self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/protocols/haproxy/test/test_v1parser.py�test_missingPROXYHeaderValue s �z*V1ParserTests.test_missingPROXYHeaderValuec C s | � ttjjd� dS )zX Test that an exception is raised when the proto is not TCP or UNKNOWN. s PROXY WUTPROTO N)r r r r r r r r r �test_invalidNetworkProtocol s �z)V1ParserTests.test_invalidNetworkProtocolc C s | � ttjjd� dS )zU Test that an exception is raised when the proto has no source data. s PROXY TCP4 N�r r r r r r r r r �test_missingSourceData'