| Server IP : 46.62.235.243 / Your IP : 216.73.216.254 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/protocols/haproxy/test/__pycache__/ |
Upload File : |
�
oj� � � � d Z ddlmZmZ ddlmZmZmZmZ m
Z
mZ ddlm
Z
ddlmZ ddlmZ ddlmZ G d � d
e� Z G d� de� Zy
)z1
Tests for L{twisted.protocols.haproxy._parser}.
� )�Type�Union)�TCP4ServerEndpoint�TCP6ServerEndpoint�UNIXServerEndpoint�_parse�_WrapperServerEndpoint�serverFromString)�
MemoryReactor)�SynchronousTestCase� )�unparseEndpoint)�HAProxyWrappingFactoryc �P � e Zd ZdZdeddfd�Zdd�Zdd�Zdd�Zdd �Z dd
�Z
dd�Zy)
�UnparseEndpointTestszg
Tests to ensure that un-parsing an endpoint string round trips through
escaping properly.
�input�returnNc �F � | j t t |� � |� y)aA
Check that the input unparses into the output, raising an assertion
error if it doesn't.
@param input: an input in endpoint-string-description format. (To
ensure determinism, keyword arguments should be in alphabetical
order.)
@type input: native L{str}
N)�assertEqualr �
parseEndpoint)�selfr s �L/usr/lib/python3/dist-packages/twisted/protocols/haproxy/test/test_parser.py�checkzUnparseEndpointTests.check s � �
����-��*>�?��G� c �&