Fix test_delete_missing unit test

This commit is contained in:
twangboy 2016-03-25 12:22:32 -06:00
parent f5f7249c37
commit 2855ea3e2e

View File

@ -153,9 +153,9 @@ def delete(path, attribute):
try:
salt.utils.mac_utils.execute_return_success(cmd)
except CommandExecutionError as exc:
if 'such file:' in exc.strerror:
if 'such file' in exc.strerror:
raise CommandExecutionError('File not found: {0}'.format(path))
if 'such xattr:' in exc.strerror:
if 'such xattr' in exc.strerror:
raise CommandExecutionError('Attribute not found: {0}'.format(attribute))
return False