class EntryTestsMixin: (source)
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.
Method | test_from |
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 ... |
Method | test_matches |
IKnownHostEntry.matchesHost checks to see if an entry matches a given hostname. |
Method | test_matches |
IKnownHostEntry.matchesKey checks to see if an entry matches a given SSH key. |
Method | test_provides |
The given entry should provide IKnownHostEntry. |
Instance Variable | entry |
a provider of IKnownHostEntry with a hostname of www.twistedmatrix.com and an RSA key of sampleKey. |
twisted.conch.test.test_knownhosts.UnparsedEntryTests
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.
twisted.conch.test.test_knownhosts.UnparsedEntryTests
IKnownHostEntry.matchesHost
checks to see if an entry matches a given hostname.
twisted.conch.test.test_knownhosts.UnparsedEntryTests
IKnownHostEntry.matchesKey
checks to see if an entry matches a given SSH key.
twisted.conch.test.test_knownhosts.HashedEntryTests
, twisted.conch.test.test_knownhosts.PlainEntryTests
, twisted.conch.test.test_knownhosts.UnparsedEntryTests
a provider of IKnownHostEntry
with a hostname of www.twistedmatrix.com and an RSA key of sampleKey.