From b7dae5adddc9a33f4ee0bea7bd91748418e1f699 Mon Sep 17 00:00:00 2001 From: rallytime Date: Tue, 3 Oct 2017 12:18:27 -0400 Subject: [PATCH] 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. --- tests/unit/modules/test_status.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/modules/test_status.py b/tests/unit/modules/test_status.py index 24efc397c51..fadd448aaac 100644 --- a/tests/unit/modules/test_status.py +++ b/tests/unit/modules/test_status.py @@ -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): '''