HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/test_address.cpython-38.pyc
U


W[]�@s\dZddlmZmZddlmZddlmZddlm	Z	ddl
mZGdd�deje	�Z
d	S)
z5
Tests for L{SSHTransportAddrress} in ssh/address.py
�)�division�absolute_import)�unittest)�IPv4Address)�AddressTestCaseMixin)�SSHTransportAddressc@s(eZdZdZdd�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).
    cCs.|��}||�}||j�}|�|d|�dS)z�
        The string representation of C{SSHTransportAddress} should be
        "SSHTransportAddress(<stringFunction on address>)".
        zSSHTransportAddress(%s)N)�buildAddressZaddressZassertEqual)�selfZstringFunctionZaddrZstringValueZaddressValue�r�A/usr/lib/python3/dist-packages/twisted/conch/test/test_address.py�_stringRepresentations
�z.SSHTransportAddressTests._stringRepresentationcCsttddd��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��rr�r
rrrr	&sz%SSHTransportAddressTests.buildAddresscCsttddd��S)zK
        Like C{buildAddress}, but with a different fixed address.
        rz	127.0.0.2rrrrrr�buildDifferentAddress.sz.SSHTransportAddressTests.buildDifferentAddressN)�__name__�
__module__�__qualname__�__doc__r
r	rrrrrrsrN)rZ
__future__rrZ
twisted.trialrZtwisted.internet.addressrZ"twisted.internet.test.test_addressrZtwisted.conch.ssh.addressrZTestCaserrrrr�<module>s