§
    Ètºfœ  ã                  ó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   € ð
 × Ò Ñ"Ô"ˆØ$�n TÑ*Ô*ˆØ%�~ d¤lÑ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   € õ
 #¥;¨u°kÀ2Ñ#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   € õ #¥;¨u°kÀ2Ñ#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Ô0Ð2Fñ Hô Hð Hð Hð Hr   