'L{KnownHostsFile.hasHostKey} returns C{True} when a key for the given
hostname is present and matches the expected key.'

def test_hasPresentKey(self):

    hostsFile = self.loadSampleHostsFile()
    self.assertTrue(hostsFile.hasHostKey('www.twistedmatrix.com', Key.fromString(sampleKey)))
