| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/conch/test/__pycache__/ |
Upload File : |
o
�b � @ sL d Z ddlmZ ddlmZ ddlmZ ddlmZ G dd� dej e�Z
dS ) z5
Tests for L{SSHTransportAddrress} in ssh/address.py
� )�SSHTransportAddress)�IPv4Address)�AddressTestCaseMixin)�unittestc @ s( e Zd ZdZdd� 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).
c C s. | � � }||�}||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�_stringRepresentation s
z.SSHTransportAddressTests._stringRepresentationc C � t tddd��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
r r r r s z%SSHTransportAddressTests.buildAddressc C r )zK
Like C{buildAddress}, but with a different fixed address.
r z 127.0.0.2r r r r r r �buildDifferentAddress'