File: //lib/python3/dist-packages/twisted/protocols/haproxy/test/__pycache__/test_parser.cpython-38.pyc
U
W[�
� @ sx d Z ddlmZ ddlmZ ddlmZmZm Z m
Z
mZmZ
ddlmZ ddlmZ G dd � d e�ZG d
d� de�ZdS )
z1
Tests for L{twisted.protocols.haproxy._parser}.
� )�SynchronousTestCase)�
MemoryReactor)�_WrapperServerEndpoint�TCP4ServerEndpoint�TCP6ServerEndpoint�UNIXServerEndpoint�serverFromString�_parse� )�HAProxyWrappingFactory)�unparseEndpointc @ sH e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dS )�UnparseEndpointTestszg
Tests to ensure that un-parsing an endpoint string round trips through
escaping properly.
c C s | � tt|�� |� dS )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)ZassertEqualr �
parseEndpoint)�self�input� r �L/usr/lib/python3/dist-packages/twisted/protocols/haproxy/test/test_parser.py�check s
zUnparseEndpointTests.checkc C s | � d� dS )z%
An individual word.
ZwordN�r �r r r r �test_basicUnparse'