def METHOD_NAME(self):
    hostdict = paramiko.HostKeys("hostfile.temp")
    self.assertTrue("secure.example.com" in hostdict)
    self.assertTrue("not.example.com" not in hostdict)
    self.assertTrue("secure.example.com" in hostdict)
    self.assertTrue("not.example.com" not in hostdict)
    x = hostdict.get("secure.example.com", None)
    self.assertTrue(x is not None)
    fp = hexlify(x["ssh-rsa"].get_fingerprint()).upper()
    self.assertEqual(b"E6684DB30E109B67B70FF1DC5C7F1363", fp)
    assert list(hostdict) == hostdict.keys()
    assert len(list(hostdict)) == len(hostdict.keys()) == 4