Fix salt.utils.is_windows call

This commit is contained in:
Ch3LL 2019-02-15 15:16:38 -05:00
parent ffa2f5fa50
commit 92bd6b9dc3
No known key found for this signature in database
GPG key ID: 132B55A7C13EFA73

View file

@ -803,7 +803,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
with patch.object(os.path, 'exists', mock_t):
with patch.dict(filestate.__opts__, {'test': True}):
ret.update({'comment': comt})
if salt.utils.is_windows():
if salt.utils.platform.is_windows():
self.assertDictEqual(filestate.managed
(name, user=user,
group=group), ret)