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