%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/conch/test/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_address.cpython-312.pyc

�

Ϫ�f���|�dZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZGd�d	eje
�Zy
)z5
Tests for L{SSHTransportAddrress} in ssh/address.py
�)�annotations)�Callable)�SSHTransportAddress)�IPv4Address)�AddressTestCaseMixin)�unittestc�(�eZdZdZdd�Zdd�Zdd�Zy)�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>)".
        zSSHTransportAddress(%s)N)�buildAddress�address�assertEqual)�self�stringFunction�addr�stringValue�addressValues     �A/usr/lib/python3/dist-packages/twisted/conch/test/test_address.py�_stringRepresentationz.SSHTransportAddressTests._stringRepresentations@��
� � �"��$�T�*��%�d�l�l�3������&?�,�&N�O�c�.�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�rs rrz%SSHTransportAddressTests.buildAddress"s��
#�;�u�k�2�#F�G�Grc�.�ttddd��S)zK
        Like C{buildAddress}, but with a different fixed address.
        rz	127.0.0.2rrrs r�buildDifferentAddressz.SSHTransportAddressTests.buildDifferentAddress)s��#�;�u�k�2�#F�G�GrN)rzCallable[[object], str]�return�None)rr)�__name__�
__module__�__qualname__�__doc__rrr�rrr
r
s���P�H�Hrr
N)r#�
__future__r�typingr�twisted.conch.ssh.addressr�twisted.internet.addressr�"twisted.internet.test.test_addressr�
twisted.trialr�TestCaser
r$rr�<module>r,s5���#��9�0�C�"�H�x�0�0�2F�Hr

Zerion Mini Shell 1.0