def test_execute_without_root_helper(self):
    with mock.patch.object(processutils, 'execute', autospec=True) as execute_mock:
        utils.execute('foo', run_as_root=False)
        execute_mock.assert_called_once_with('foo', run_as_root=False)
def test_execute_without_root_helper(self):
    with mock.patch.object(processutils, 'execute', autospec=True) as execute_mock:
        utils.execute('foo', run_as_root=False)
        execute_mock.assert_called_once_with('foo', run_as_root=False)