summaryrefslogtreecommitdiff
path: root/test/units/modules/network/ovs/test_openvswitch_db.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/modules/network/ovs/test_openvswitch_db.py')
-rw-r--r--test/units/modules/network/ovs/test_openvswitch_db.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/units/modules/network/ovs/test_openvswitch_db.py b/test/units/modules/network/ovs/test_openvswitch_db.py
index eb55c0cceb..b99924c4b2 100644
--- a/test/units/modules/network/ovs/test_openvswitch_db.py
+++ b/test/units/modules/network/ovs/test_openvswitch_db.py
@@ -20,11 +20,10 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-import json
-
from ansible.compat.tests.mock import patch
from ansible.modules.network.ovs import openvswitch_db
-from .ovs_module import TestOpenVSwitchModule, load_fixture, set_module_args
+from units.modules.utils import set_module_args
+from .ovs_module import TestOpenVSwitchModule, load_fixture
test_name_side_effect_matrix = {
'test_openvswitch_db_absent_idempotent': [
@@ -50,6 +49,8 @@ class TestOpenVSwitchDBModule(TestOpenVSwitchModule):
module = openvswitch_db
def setUp(self):
+ super(TestOpenVSwitchDBModule, self).setUp()
+
self.mock_run_command = (
patch('ansible.module_utils.basic.AnsibleModule.run_command'))
self.run_command = self.mock_run_command.start()
@@ -58,6 +59,8 @@ class TestOpenVSwitchDBModule(TestOpenVSwitchModule):
self.get_bin_path = self.mock_get_bin_path.start()
def tearDown(self):
+ super(TestOpenVSwitchDBModule, self).tearDown()
+
self.mock_run_command.stop()
self.mock_get_bin_path.stop()