
    tf                    z    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ  G d d	ej        e
          Zd
S )z5
Tests for L{SSHTransportAddrress} in ssh/address.py
    )annotations)Callable)SSHTransportAddress)IPv4Address)AddressTestCaseMixin)unittestc                  *    e Zd ZdZddZddZdd	Zd
S )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).
    stringFunctionCallable[[object], str]returnNonec                    |                                  } ||          } ||j                  }|                     |d|z             dS )z
        The string representation of C{SSHTransportAddress} should be
        "SSHTransportAddress(<stringFunction on address>)".
        zSSHTransportAddress(%s)N)buildAddressaddressassertEqual)selfr   addrstringValueaddressValues        ^/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/conch/test/test_address.py_stringRepresentationz.SSHTransportAddressTests._stringRepresentation   sW    
   ""$nT**%~dl33&?,&NOOOOO    r   c                >    t          t          ddd                    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   s    r   r   z%SSHTransportAddressTests.buildAddress"   s    
 #;uk2#F#FGGGr   c                >    t          t          ddd                    S )zK
        Like C{buildAddress}, but with a different fixed address.
        r   z	127.0.0.2r   r   r   s    r   buildDifferentAddressz.SSHTransportAddressTests.buildDifferentAddress)   s     #;uk2#F#FGGGr   N)r   r   r   r   )r   r   )__name__
__module____qualname____doc__r   r   r     r   r   r
   r
      sh         P P P PH H H HH H H H H Hr   r
   N)r$   
__future__r   typingr   twisted.conch.ssh.addressr   twisted.internet.addressr   "twisted.internet.test.test_addressr   twisted.trialr   TestCaser
   r%   r   r   <module>r-      s     # " " " " "       9 9 9 9 9 9 0 0 0 0 0 0 C C C C C C " " " " " "H H H H Hx02F H H H H Hr   