@patch('paver.git.sh')
def test_simple_branch_checkout(sh):
    git.branch_checkout("my_branch", path="repo_path")
    assert sh.called
    assert sh.call_args[0][0] == "cd repo_path; git checkout my_branch"
dataset/ETHPy150Open paver/paver/paver/tests/test_git.py/test_simple_branch_checkout/original