def test_ssh_get(self, run_cmd): ssh_get('user@remote', 'foo/bar*', 'mydestdir') run_cmd.assert_called_with(['scp', '-q', '-oStrictHostKeyChecking=no', '-oUserKnownHostsFile=/dev/null', 'user@remote:foo/bar*', '.'], cwd='mydestdir')
def get(self, shell_pattern, destdir): ssh_get(self._ssh_connect_string, 'workspace/{}'.format(shell_pattern), destdir)