Known subclasses: twisted.conch.test.test_knownhosts.HashedEntryTests, twisted.conch.test.test_knownhosts.PlainEntryTests, twisted.conch.test.test_knownhosts.UnparsedEntryTests

Tests for implementations of IKnownHostEntry. Subclasses must set the 'entry' attribute to a provider of that interface, the implementation of that interface under test.

Instance Variable entry a provider of IKnownHostEntry with a hostname of www.twistedmatrix.com and an RSA key of sampleKey.
Method test_providesInterface The given entry should provide IKnownHostEntry.
Method test_fromString No summary
Method test_matchesKey IKnownHostEntry.matchesKey checks to see if an entry matches a given SSH key.
Method test_matchesHost IKnownHostEntry.matchesHost checks to see if an entry matches a given hostname.
entry =
a provider of IKnownHostEntry with a hostname of www.twistedmatrix.com and an RSA key of sampleKey.
def test_providesInterface(self):

The given entry should provide IKnownHostEntry.

def test_fromString(self):

Constructing a plain text entry from an unhashed known_hosts entry will result in an IKnownHostEntry provider with 'keyString', 'hostname', and 'keyType' attributes. While outside the interface in question, these attributes are held in common by PlainEntry and HashedEntry implementations; other implementations should override this method in subclasses.

def test_matchesKey(self):

IKnownHostEntry.matchesKey checks to see if an entry matches a given SSH key.

def test_matchesHost(self):

IKnownHostEntry.matchesHost checks to see if an entry matches a given hostname.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.