Fix one more salt.utils fopen reference to point to files

This commit is contained in:
rallytime 2017-07-18 15:04:49 -06:00
parent 89d957b124
commit 3f0945b9b7

View File

@ -1011,7 +1011,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
self.assertDictEqual(filestate.comment(name, regex), ret)
with patch.dict(filestate.__opts__, {'test': False}):
with patch.object(salt.utils, 'fopen',
with patch.object(salt.utils.files, 'fopen',
MagicMock(mock_open())):
comt = ('Commented lines successfully')
ret.update({'comment': comt, 'result': True})