mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update test to reflect new function signature
This commit is contained in:
parent
0f158b5edd
commit
283aca8f2a
1 changed files with 4 additions and 2 deletions
|
@ -55,8 +55,10 @@ class XAttrTestCase(TestCase):
|
|||
'''
|
||||
with patch.object(salt.utils.mac_utils, 'execute_return_result',
|
||||
MagicMock(return_value='expected results')) as mock:
|
||||
self.assertEqual(xattr.read('/path/to/file', 'com.attr', True),
|
||||
'expected results')
|
||||
self.assertEqual(
|
||||
xattr.read('/path/to/file', 'com.attr', **{'hex': True}),
|
||||
'expected results'
|
||||
)
|
||||
mock.assert_called_once_with('xattr -p -x "com.attr" "/path/to/file"')
|
||||
|
||||
@patch('salt.utils.mac_utils.execute_return_result',
|
||||
|
|
Loading…
Add table
Reference in a new issue