File: //usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/test_address.cpython-38.pyc
U
W[] � @ s\ d Z ddlmZmZ ddlmZ ddlmZ ddlm Z ddl
mZ G dd� deje �Z
d S )
z5
Tests for L{SSHTransportAddrress} in ssh/address.py
� )�division�absolute_import)�unittest)�IPv4Address)�AddressTestCaseMixin)�SSHTransportAddressc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �SSHTransportAddressTestsz�
L{twisted.conch.ssh.address.SSHTransportAddress} is what Conch transports
use to represent the other side of the SSH connection. This tests the
basic functionality of that class (string representation, comparison, &c).
c C s. | � � }||�}||j�}| �|d| � dS )z�
The string representation of C{SSHTransportAddress} should be
"SSHTransportAddress(<stringFunction on address>)".
zSSHTransportAddress(%s)N)�buildAddressZaddressZassertEqual)�selfZstringFunctionZaddrZstringValueZaddressValue� r �A/usr/lib/python3/dist-packages/twisted/conch/test/test_address.py�_stringRepresentation s
�z.SSHTransportAddressTests._stringRepresentationc C s t tddd��S )z�
Create an arbitrary new C{SSHTransportAddress}. A new instance is
created for each call, but always for the same address.
�TCPz 127.0.0.1� �r r �r
r r r r &