Server IP : 209.38.156.173 / Your IP : 216.73.216.128 [ 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 : /lib/python3/dist-packages/twisted/protocols/haproxy/test/__pycache__/ |
Upload File : |
o �bJ � @ 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 @ st e Zd ZdZddd�Zddd�Zddd �Zdd d�Zddd �Zddd�Z ddd�Z ddd�Zddd�Zddd�Z dS )� V1ParserTestsz? Test L{twisted.protocols.haproxy.V1Parser} behaviour. �returnNc C � | � ttjjd� dS )zT Test that an exception is raised when the PROXY header is missing. s NOTPROXY N)�assertRaisesr r �V1Parser�parse��self� r �N/usr/lib/python3/dist-packages/twisted/protocols/haproxy/test/test_v1parser.py�test_missingPROXYHeaderValue � �z*V1ParserTests.test_missingPROXYHeaderValuec C r )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 r z)V1ParserTests.test_invalidNetworkProtocolc C r )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'