mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Bump with statements in one level
This is needed because the previous commit changed the context management style from nested with statements to stacked with statements.
This commit is contained in:
parent
c976df7c09
commit
b7dae5addd
1 changed files with 3 additions and 3 deletions
|
@ -136,9 +136,9 @@ class StatusTestCase(TestCase, LoaderModuleMockMixin):
|
|||
ret = status.uptime()
|
||||
self.assertDictEqual(ret, m.ret)
|
||||
|
||||
with patch.dict(status.__salt__, {'sysctl.get': MagicMock(return_value='')}):
|
||||
with self.assertRaises(CommandExecutionError):
|
||||
status.uptime()
|
||||
with patch.dict(status.__salt__, {'sysctl.get': MagicMock(return_value='')}):
|
||||
with self.assertRaises(CommandExecutionError):
|
||||
status.uptime()
|
||||
|
||||
def test_uptime_return_success_not_supported(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue