|
|
@ -21,6 +21,7 @@ from __future__ import (absolute_import, division)
|
|
|
|
__metaclass__ = type
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
|
|
|
|
import errno
|
|
|
|
import errno
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
from six.moves import builtins
|
|
|
|
from six.moves import builtins
|
|
|
|
|
|
|
|
|
|
|
@ -221,6 +222,7 @@ class TestModuleUtilsBasic(unittest.TestCase):
|
|
|
|
with patch('os.path.realpath', return_value='/path/to/foo/'):
|
|
|
|
with patch('os.path.realpath', return_value='/path/to/foo/'):
|
|
|
|
self.assertEqual(get_module_path(), '/path/to/foo')
|
|
|
|
self.assertEqual(get_module_path(), '/path/to/foo')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
|
|
|
|
def test_module_utils_basic_ansible_module_creation(self):
|
|
|
|
def test_module_utils_basic_ansible_module_creation(self):
|
|
|
|
from ansible.module_utils import basic
|
|
|
|
from ansible.module_utils import basic
|
|
|
|
|
|
|
|
|
|
|
|