def install_package(package, version=None, local=False, npm='npm'):
    if version:
        package += '@%s' % version

    if local:
        run('%(npm)s install -l %(package)s' % locals())
    else:
        run_as_root('HOME=/root %(npm)s install -g %(package)s' % locals())
A valid post should create a new group and authgroup.
dataset/ETHPy150Open ronnix/fabtools/fabtools/nodejs.py/install_package--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupCreateViewTest.test_form_valid_creates_authgroup_and_group