HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_address.cpython-310.pyc
o

�b�@sLdZddlmZddlmZddlmZddlmZGdd�dej	e�Z
dS)	z5
Tests for L{SSHTransportAddrress} in ssh/address.py
�)�SSHTransportAddress)�IPv4Address)�AddressTestCaseMixin)�unittestc@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)�buildAddress�address�assertEqual)�self�stringFunction�addr�stringValue�addressValue�r�A/usr/lib/python3/dist-packages/twisted/conch/test/test_address.py�_stringRepresentations
z.SSHTransportAddressTests._stringRepresentationcC�ttddd��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
rrrr sz%SSHTransportAddressTests.buildAddresscCr)zK
        Like C{buildAddress}, but with a different fixed address.
        rz	127.0.0.2rrrrrr�buildDifferentAddress'sz.SSHTransportAddressTests.buildDifferentAddressN)�__name__�
__module__�__qualname__�__doc__rrrrrrrrs

rN)r�twisted.conch.ssh.addressr�twisted.internet.addressr�"twisted.internet.test.test_addressr�
twisted.trialr�TestCaserrrrr�<module>s