'L{default.verifyHostKey} should find your known_hosts file in
~/.ssh/known_hosts if you don\'t specify one explicitly on the command
line.'

def test_noKnownHostsOption(self):

    l = []
    tmpdir = self.mktemp()
    oldHostsOption = self.hostsOption
    hostsNonOption = FilePath(tmpdir).child('.ssh').child('known_hosts')
    hostsNonOption.parent().makedirs()
    FilePath(oldHostsOption).moveTo(hostsNonOption)
    self.replaceHome(tmpdir)
    self.options['known-hosts'] = None
    default.verifyHostKey(self.fakeTransport, '4.3.2.1', sampleKey, "I    don't    care.").addCallback(l.append)
    self.assertEqual([1], l)
