def test_sudo_prefix_with_group():
    """
    _sudo_prefix() returns prefix plus -g flag for nonempty group
    """
    eq_(
        _sudo_prefix(user=None, group="foo"),
        "%s -g \"foo\" " % (env % env.sudo_prefix)
    )
dataset/ETHPy150Open fabric/fabric/tests/test_operations.py/test_sudo_prefix_with_group/swapped operands of `%`