コード例 #1
0
ファイル: test_git.py プロジェクト: pombredanne/pensieve-1
def test_git_constructs_commands_with_options(command, expected):
    run = mock_run()
    _git._git('path', command, run=run)
    run.assert_called_once_with('path', expected)
コード例 #2
0
ファイル: test_git.py プロジェクト: pombredanne/pensieve-1
def test_git_raises_giterror():
    run = mock_run(returncode=1)
    with raises(GitError):
        _git._git('path', ['foo', 'bar'], run=run)