/usr/lib/python3/dist-packages/twisted/conch/test
NameSizeModeActions
__pycache__/-0755rm
keydata.py352080644editdlrm
loopback.py7060644editdlrm
test_address.py15500644editdlrm
test_agent.py132190644editdlrm
test_cftp.py505030644editdlrm
test_channel.py121830644editdlrm
test_checkers.py313400644editdlrm
test_ckeygen.py243390644editdlrm
test_conch.py257400644editdlrm
test_connection.py292570644editdlrm
test_default.py115880644editdlrm
test_endpoints.py558880644editdlrm
test_filetransfer.py331330644editdlrm
test_forwarding.py21620644editdlrm
test_helper.py200330644editdlrm
test_insults.py321320644editdlrm
test_keys.py625190644editdlrm
test_knownhosts.py494970644editdlrm
test_manhole.py132570644editdlrm
test_manhole_tap.py43510644editdlrm
test_mixin.py10540644editdlrm
test_openssh_compat.py48760644editdlrm
test_recvline.py254320644editdlrm
test_scripts.py17810644editdlrm
test_session.py447930644editdlrm
test_ssh.py329380644editdlrm
test_tap.py50370644editdlrm
test_telnet.py268070644editdlrm
test_text.py40210644editdlrm
test_transport.py1072710644editdlrm
test_unix.py26000644editdlrm
test_userauth.py335550644editdlrm
test_window.py21130644editdlrm
__init__.py140644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/conch/test/test_address.py (1550B)
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for L{SSHTransportAddrress} in ssh/address.py """ from twisted.conch.ssh.address import SSHTransportAddress from twisted.internet.address import IPv4Address from twisted.internet.test.test_address import AddressTestCaseMixin from twisted.trial import unittest class SSHTransportAddressTests(unittest.TestCase, AddressTestCaseMixin): """ 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). """ def _stringRepresentation(self, stringFunction): """ The string representation of C{SSHTransportAddress} should be "SSHTransportAddress()". """ addr = self.buildAddress() stringValue = stringFunction(addr) addressValue = stringFunction(addr.address) self.assertEqual(stringValue, "SSHTransportAddress(%s)" % addressValue) def buildAddress(self): """ Create an arbitrary new C{SSHTransportAddress}. A new instance is created for each call, but always for the same address. """ return SSHTransportAddress(IPv4Address("TCP", "127.0.0.1", 22)) def buildDifferentAddress(self): """ Like C{buildAddress}, but with a different fixed address. """ return SSHTransportAddress(IPv4Address("TCP", "127.0.0.2", 22))