Update newly added test to reflect renaming of handles attribute

This commit is contained in:
Erik Johnson 2018-06-18 00:22:43 -05:00
parent 77e5288d42
commit 6acb4c83ec
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -1103,7 +1103,7 @@ class FilemodLineTests(TestCase, LoaderModuleMockMixin):
patch('salt.utils.atomicfile.atomic_open',
mock_open()) as atomic_open_mock:
filemod.line(name, content=cfg_content, after=after_line, mode='insert', indent=False)
handles = atomic_open_mock.handles[name]
handles = atomic_open_mock.filehandles[name]
# We should only have opened the file once
open_count = len(handles)
assert open_count == 1, open_count