'Loading a L{KnownHostsFile} from a path whose parent directory does not
exist should result in an empty L{KnownHostsFile} that will save back
to that path, creating its parent directory(ies) in the process.'

def test_loadNonExistentParent(self):

    thePath = FilePath(self.mktemp())
    knownHostsPath = thePath.child('foo').child('known_hosts')
    knownHostsFile = KnownHostsFile.fromPath(knownHostsPath)
    knownHostsFile.save()
    knownHostsPath.restat(False)
    self.assertTrue(knownHostsPath.exists())
