def testNoKeys(self):
    data_empty_keys = {constants.SSHS_SSH_HOST_KEY: []}
    for data in [{}, data_empty_keys]:
        for dry_run in [False, True]:
            prepare_node_join.UpdateSshDaemon(data, dry_run, _runcmd_fn=NotImplemented, _keyfiles=NotImplemented)
    self.assertEqual(os.listdir(self.tmpdir), [])
def testNoKeys(self):
    data_empty_keys = {constants.SSHS_SSH_HOST_KEY: []}
    for data in [{}, data_empty_keys]:
        for dry_run in [False, True]:
            prepare_node_join.UpdateSshDaemon(data, dry_run, _runcmd_fn=NotImplemented, _keyfiles=NotImplemented)
    self.assertEqual(os.listdir(self.tmpdir), [])