diff options
Diffstat (limited to 'test/units/modules/network/f5/test_bigip_command.py')
-rw-r--r-- | test/units/modules/network/f5/test_bigip_command.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/units/modules/network/f5/test_bigip_command.py b/test/units/modules/network/f5/test_bigip_command.py index f4ff740195..39d4c2333d 100644 --- a/test/units/modules/network/f5/test_bigip_command.py +++ b/test/units/modules/network/f5/test_bigip_command.py @@ -16,9 +16,8 @@ if sys.version_info < (2, 7): from ansible.compat.tests import unittest from ansible.compat.tests.mock import patch, Mock -from ansible.module_utils import basic -from ansible.module_utils._text import to_bytes from ansible.module_utils.f5_utils import AnsibleF5Client +from units.modules.utils import set_module_args try: from library.bigip_command import Parameters @@ -38,11 +37,6 @@ fixture_path = os.path.join(os.path.dirname(__file__), 'fixtures') fixture_data = {} -def set_module_args(args): - args = json.dumps({'ANSIBLE_MODULE_ARGS': args}) - basic._ANSIBLE_ARGS = to_bytes(args) - - def load_fixture(name): path = os.path.join(fixture_path, name) with open(path) as f: |