Restore MagicMock as it shouldn't cause any issues.

This commit is contained in:
Daniel Bradshaw 2014-01-29 18:45:35 +00:00
parent bc967fa3fb
commit 869f980b45

View File

@ -155,6 +155,8 @@ class FileBlockReplaceTestCase(TestCase):
prefix='blockrepltmp')
self.tfile.write(self.MULTILINE_STRING)
self.tfile.close()
manage_mode_mock = MagicMock()
filemod.__salt__['config.manage_mode'] = manage_mode_mock
def tearDown(self):
os.remove(self.tfile.name)