'Two L{HashedEntry} instances compare equal if and only if they represent
the same host and key in exactly the same way: the host salt, host hash,
public key type, public key, and comment fields must all be equal.'

def test_equality(self):

    hostSalt = 'gJbSEPBG9ZSBoZpHNtZBD1bHKBA'
    hostHash = 'bQv+0Xa0dByrwkA1EB0E7Xop/Fo'
    publicKey = Key.fromString(sampleKey)
    keyType = networkString(publicKey.type())
    comment = 'hello,    world'
    entry = HashedEntry(hostSalt, hostHash, keyType, publicKey, comment)
    duplicate = HashedEntry(hostSalt, hostHash, keyType, publicKey, comment)
    self.assertNormalEqualityImplementation(entry, duplicate, HashedEntry(hostSalt[::(-1)], hostHash, keyType, publicKey, comment))
    self.assertNormalEqualityImplementation(entry, duplicate, HashedEntry(hostSalt, hostHash[::(-1)], keyType, publicKey, comment))
    self.assertNormalEqualityImplementation(entry, duplicate, HashedEntry(hostSalt, hostHash, keyType[::(-1)], publicKey, comment))
    self.assertNormalEqualityImplementation(entry, duplicate, HashedEntry(hostSalt, hostHash, keyType, Key.fromString(otherSampleKey), comment))
    self.assertNormalEqualityImplementation(entry, duplicate, HashedEntry(hostSalt, hostHash, keyType, publicKey, comment[::(-1)]))
