def test__git_log_cmd_with_subdir(self, safe_run_mock):
     new_cmd = _git_log_cmd(['-n1'], None, 'subdir')
     safe_run_mock.assert_called_once_with(['git', 'log', '-n1',
                                            '--', 'subdir'], cwd=None)
 def test__git_log_cmd_with_subdir(self, safe_run_mock):
     new_cmd = _git_log_cmd(['-n1'], None, 'subdir')
     safe_run_mock.assert_called_once_with(
         ['git', 'log', '-n1', '--', 'subdir'], cwd=None)
 def test__git_log_cmd_without_args(self, safe_run_mock):
     new_cmd = _git_log_cmd([], None, '')
     safe_run_mock.assert_called_once_with(['git', 'log'], cwd=None)
 def test__git_log_cmd_without_args(self, safe_run_mock):
     new_cmd = _git_log_cmd([], None, '')
     safe_run_mock.assert_called_once_with(['git', 'log'], cwd=None)