diff --git a/tests/unit/states/service_test.py b/tests/unit/states/service_test.py index f0195232ce..03cc37c03d 100644 --- a/tests/unit/states/service_test.py +++ b/tests/unit/states/service_test.py @@ -142,9 +142,9 @@ class ServiceTestCase(TestCase): self.assertDictEqual(service.dead("salt"), ret[2]) with patch.dict(service.__opts__, {'test': False}): - with patch.dict( service.__salt__, {'service.enabled': fmock, - 'service.stop': tmock, - 'service.status': fmock}): + with patch.dict(service.__salt__, {'service.enabled': fmock, + 'service.stop': tmock, + 'service.status': fmock}): with patch.object(service, '_enable', mock): self.assertDictEqual(service.dead("salt", True), ret[1])