mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Update unit test to handle OSError exception
This commit is contained in:
parent
bba2b93e79
commit
e61315c956
@ -859,5 +859,7 @@ SwapTotal: 4789244 kB'''
|
||||
iscsii initiator is not there accessible or is not supported.
|
||||
:return:
|
||||
'''
|
||||
assert core._linux_iqn() == []
|
||||
with pytest.raises(IOError) as error:
|
||||
assert core._linux_iqn() == []
|
||||
core.log.debug.assert_not_called()
|
||||
assert 'No such file or directory' in six.text_type(error)
|
||||
|
Loading…
Reference in New Issue
Block a user