mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adjust alternatives test for updated error message
This commit is contained in:
parent
09dee3c611
commit
8bfcd5bcd5
1 changed files with 1 additions and 2 deletions
|
@ -78,8 +78,7 @@ class AlternativesTestCase(TestCase):
|
|||
os_readlink_mock.side_effect = OSError('Hell was not found!!!')
|
||||
self.assertFalse(alternatives.show_current('hell'))
|
||||
os_readlink_mock.assert_called_with('/etc/alternatives/hell')
|
||||
self.assertIn('ERROR:alternatives: path /etc/alternatives/hell '
|
||||
'does not exist',
|
||||
self.assertIn('ERROR:alternative: hell does not exist',
|
||||
handler.messages)
|
||||
|
||||
@patch('os.readlink')
|
||||
|
|
Loading…
Add table
Reference in a new issue