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:
rallytime 2017-10-03 12:18:27 -04:00
parent c976df7c09
commit b7dae5addd
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -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):
'''