From d3295e6a4e18b6e0be45f08fa95d413f4d1c871c Mon Sep 17 00:00:00 2001 From: Trace Date: Tue, 28 Apr 2015 11:59:15 -0500 Subject: [PATCH] Hoping this fixes the issue of it not working. Still new to this project. My problem of it not working (I admit to being at fault) was that I had not added the same rule to the test case. --- tests/rules/test_sudo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rules/test_sudo.py b/tests/rules/test_sudo.py index 6bac8825..9d773920 100644 --- a/tests/rules/test_sudo.py +++ b/tests/rules/test_sudo.py @@ -5,7 +5,8 @@ from tests.utils import Command @pytest.mark.parametrize('stderr', ['Permission denied', 'permission denied', - "npm ERR! Error: EACCES, unlink"]) + "npm ERR! Error: EACCES, unlink", + 'requested operation requires superuser privilege']) def test_match(stderr): assert match(Command(stderr=stderr), None)