Ë
    „ÇVhœ  ã                  ó|   — 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y
)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y)Ú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                ó‚   — | j                  «       } ||«      } ||j                  «      }| j                  |d|z  «       y)z‹
        The string representation of C{SSHTransportAddress} should be
        "SSHTransportAddress(<stringFunction on address>)".
        zSSHTransportAddress(%s)N)ÚbuildAddressÚaddressÚassertEqual)ÚselfÚstringFunctionÚaddrÚstringValueÚaddressValues        úO/home/dcms/DCMS/lib/python3.12/site-packages/twisted/conch/test/test_address.pyÚ_stringRepresentationz.SSHTransportAddressTests._stringRepresentation   s@   € ð
 × Ñ Ó"ˆÙ$ TÓ*ˆÙ% d§l¡lÓ3ˆØ×Ñ˜Ð&?À,Ñ&NÕOó    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   € ô
 #¤;¨u°kÀ2Ó#FÓ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   € ô #¤;¨u°kÀ2Ó#FÓGÐGr   N)r   zCallable[[object], str]ÚreturnÚNone)r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r
   r
      s   „ ñóPó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,      s5   ðñõ #å å 9Ý 0Ý CÝ "ôH˜x×0Ñ0Ð2Fõ Hr   