Add test case init commit

This commit is contained in:
Bo Maryniuk 2018-06-06 16:04:56 +02:00 committed by Erik Johnson
parent 3c17810486
commit 1d1627a98d
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -0,0 +1,31 @@
# coding=utf-8
'''
Test case for utils/__init__.py
'''
from tests.support.unit import TestCase, skipIf
from tests.support.mock import (
NO_MOCK,
NO_MOCK_REASON,
MagicMock,
patch
)
try:
import pytest
except ImportError:
pytest = None
import salt.utils
@skipIf(pytest is None, 'PyTest is missing')
class UtilsTestCase(TestCase):
'''
Test case for utils/__init__.py
'''
def test_get_module_environment(self):
'''
Test for salt.utils.get_module_environment
:return:
'''
_globals = {}
salt.utils.get_module_environment(_globals)