def testDryRun(self):
    data = {constants.SSHS_SSH_ROOT_KEY: [(constants.SSHK_RSA, 'aaa', 'bbb')]}
    prepare_node_join.UpdateSshRoot(data, True, _homedir_fn=self._GetHomeDir)
    self.assertEqual(os.listdir(self.tmpdir), ['.ssh'])
    self.assertEqual(os.listdir(self.sshdir), [])
def testDryRun(self):
    data = {constants.SSHS_SSH_ROOT_KEY: [(constants.SSHK_RSA, 'aaa', 'bbb')]}
    prepare_node_join.UpdateSshRoot(data, True, _homedir_fn=self._GetHomeDir)
    self.assertEqual(os.listdir(self.tmpdir), ['.ssh'])
    self.assertEqual(os.listdir(self.sshdir), [])