diff --git a/tests/unit/states/test_file.py b/tests/unit/states/test_file.py index 8df6d2b9c6..0d2bcf9f44 100644 --- a/tests/unit/states/test_file.py +++ b/tests/unit/states/test_file.py @@ -767,7 +767,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin): name = '/etc/testdir' user = 'salt' group = 'saltstack' - if salt.utils.is_windows(): + if salt.utils.platform.is_windows(): name = name.replace('/', '\\') ret = {'name': name, @@ -922,7 +922,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin): source = 'salt://code/flask' user = 'salt' group = 'saltstack' - if salt.utils.is_windows(): + if salt.utils.platform.is_windows(): name = name.replace('/', '\\') ret = {'name': name,