def bootstrap_release_folders():
    require('path')
    require('deploy_group')
    conditional_mkdir(os.path.join(env.path, env.releases_root),
            env.deploy_group, 'g+w', use_sudo=True)
    with cd(os.path.join(env.path, env.releases_root)):
        first_exists = exists(env.release_paths[0])
        if not first_exists:
            run('git clone %s %s' % (env.scm, env.release_paths[0]),
                    forward_agent=True)
    with cd(os.path.join(env.path, env.releases_root)):
        if not exists(env.release_paths[1]):
            run('cp -R %s %s' % (env.release_paths[0], env.release_paths[1]))
    chmod(os.path.join(env.path, env.releases_root), 'g+w', use_sudo=True)
Create a new command shell and mock out some bits.
dataset/ETHPy150Open bueda/ops/buedafab/deploy/release.py/bootstrap_release_folders--crossover with--dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/tests/test_shell.py/make_shell