'After L{KnownHostsFile.save} is used once with an instance initialized
by the default initializer, contents of the save path are respected and
preserved.'

def test_saveResetsClobberState(self):

    hostsFile = KnownHostsFile(self.pathWithContent(sampleHashedLine))
    preSave = hostsFile.addHostKey('www.example.com', Key.fromString(otherSampleKey))
    hostsFile.save()
    postSave = hostsFile.addHostKey('another.example.com', Key.fromString(thirdSampleKey))
    hostsFile.save()
    self.assertEqual([preSave, postSave], list(hostsFile.iterentries()))
