def test_inKnownHostsKeyChanged(self):
        """
        L{default.isInKnownHosts} should return C{2} when a host with a key
        other than the given one is in the known hosts file.
        """
        host = self.hashedEntries[b"4.3.2.1"].toString().split()[0]
        r = default.isInKnownHosts(
            host, Key.fromString(otherSampleKey).blob(),
            {"known-hosts": FilePath(self.hostsOption).path})
        self.assertEqual(2, r)

        L{default.isInKnownHosts} should return C{2} when a host with a key
        other than the given one is in the known hosts file.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_knownhosts.py