@patch('paver.git.sh')
def test_branch_track_remote(sh):
    git.branch_track_remote("origin/alpha_two", path="repo_path")
    
    assert sh.called
    assert sh.call_args[0][0] == "cd %(current_path)s; git checkout -b alpha_two --track origin/alpha_two" % dict(
        current_path="repo_path"
    )
dataset/ETHPy150Open paver/paver/paver/tests/test_git.py/test_branch_track_remote/original