1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 04:21:14 +00:00

Fix sudo rule

This commit is contained in:
TJ Horner 2015-06-15 17:08:08 -07:00
parent 5e981d9b01
commit ea306038f9

View File

@ -8,6 +8,9 @@ from tests.utils import Command
('permission denied', ''), ('permission denied', ''),
("npm ERR! Error: EACCES, unlink", ''), ("npm ERR! Error: EACCES, unlink", ''),
('requested operation requires superuser privilege', ''), ('requested operation requires superuser privilege', ''),
('need to be root', ''),
('need root', ''),
('must be root', ''),
('', "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'")]) ('', "error: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/ipaddr.py'")])
def test_match(stderr, stdout): def test_match(stderr, stdout):
assert match(Command(stderr=stderr, stdout=stdout), None) assert match(Command(stderr=stderr, stdout=stdout), None)