Fix failing tests

This commit is contained in:
Mike Place 2015-08-04 09:48:43 -06:00
parent 584d608852
commit 85f5e2a443

View File

@ -58,7 +58,7 @@ class ServiceTestCase(TestCase):
'result': True},
{'changes': {},
'comment': 'The service salt is already running',
'name': 'salt', 'result': None}]
'name': 'salt', 'result': True}]
tmock = MagicMock(return_value=True)
fmock = MagicMock(return_value=False)
@ -153,7 +153,7 @@ class ServiceTestCase(TestCase):
'result': True},
{'changes': {},
'comment': 'The service salt is already dead', 'name': 'salt',
'result': None}]
'result': True}]
mock = MagicMock(return_value="salt")
with patch.object(service, '_enabled_used_error', mock):