summaryrefslogtreecommitdiff
path: root/test/units/modules/network/nxos
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-10-12 20:01:14 -0700
committerGitHub <noreply@github.com>2018-10-12 20:01:14 -0700
commit3033fd96b09b4c6bb2536d08634fc45728feab88 (patch)
treecf917cec18513bbfddf4bf8df4e8ec7c317ef4da /test/units/modules/network/nxos
parent6e2897647c77910c0fc5c4306f381f1b5cd00635 (diff)
downloadansible-3033fd96b09b4c6bb2536d08634fc45728feab88.tar.gz
Move unit test compat code out of `lib/ansible/`. (#46996)
* Move ansible.compat.tests to test/units/compat/. * Fix unit test references to ansible.compat.tests. * Move builtins compat to separate file. * Fix classification of test/units/compat/ dir.
Diffstat (limited to 'test/units/modules/network/nxos')
-rw-r--r--test/units/modules/network/nxos/test_nxos_acl.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_acl_interface.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_banner.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_bgp.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_bgp_af.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_bgp_neighbor.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_command.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_config.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_evpn_global.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_evpn_vni.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_feature.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_hsrp.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_interface.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_interface_ospf.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_ip_interface.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_nxapi.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_ospf.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_ospf_vrf.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_overlay_global.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_pim.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_pim_interface.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_pim_rp_address.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_portchannel.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_static_route.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_switchport.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_system.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vlan.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vpc.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vpc_interface.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vrf.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vrf_af.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vxlan_vtep.py2
-rw-r--r--test/units/modules/network/nxos/test_nxos_vxlan_vtep_vni.py2
34 files changed, 34 insertions, 34 deletions
diff --git a/test/units/modules/network/nxos/test_nxos_acl.py b/test/units/modules/network/nxos/test_nxos_acl.py
index e18a83d8f3..39fb0b0486 100644
--- a/test/units/modules/network/nxos/test_nxos_acl.py
+++ b/test/units/modules/network/nxos/test_nxos_acl.py
@@ -21,7 +21,7 @@ __metaclass__ = type
import json
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_acl
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_acl_interface.py b/test/units/modules/network/nxos/test_nxos_acl_interface.py
index 8e71fa8c86..bfcab65a94 100644
--- a/test/units/modules/network/nxos/test_nxos_acl_interface.py
+++ b/test/units/modules/network/nxos/test_nxos_acl_interface.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metacl_interfaceass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_acl_interface
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_banner.py b/test/units/modules/network/nxos/test_nxos_banner.py
index 7c0644a38e..326f9a3088 100644
--- a/test/units/modules/network/nxos/test_nxos_banner.py
+++ b/test/units/modules/network/nxos/test_nxos_banner.py
@@ -17,7 +17,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_banner
from .nxos_module import TestNxosModule, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_bgp.py b/test/units/modules/network/nxos/test_nxos_bgp.py
index cc71c877aa..cc3ae8c890 100644
--- a/test/units/modules/network/nxos/test_nxos_bgp.py
+++ b/test/units/modules/network/nxos/test_nxos_bgp.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_bgp
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_bgp_af.py b/test/units/modules/network/nxos/test_nxos_bgp_af.py
index b508047e82..c0cc93d282 100644
--- a/test/units/modules/network/nxos/test_nxos_bgp_af.py
+++ b/test/units/modules/network/nxos/test_nxos_bgp_af.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_bgp_af
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_bgp_neighbor.py b/test/units/modules/network/nxos/test_nxos_bgp_neighbor.py
index e18d9581e6..ac05f6120f 100644
--- a/test/units/modules/network/nxos/test_nxos_bgp_neighbor.py
+++ b/test/units/modules/network/nxos/test_nxos_bgp_neighbor.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_bgp_neighbor
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py b/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py
index ed0617a568..78cb1e3307 100644
--- a/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py
+++ b/test/units/modules/network/nxos/test_nxos_bgp_neighbor_af.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_bgp_neighbor_af
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_command.py b/test/units/modules/network/nxos/test_nxos_command.py
index 6f3e0e14c3..a3c148212a 100644
--- a/test/units/modules/network/nxos/test_nxos_command.py
+++ b/test/units/modules/network/nxos/test_nxos_command.py
@@ -21,7 +21,7 @@ __metaclass__ = type
import json
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_command
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_config.py b/test/units/modules/network/nxos/test_nxos_config.py
index de476734a4..bff8cc6d7e 100644
--- a/test/units/modules/network/nxos/test_nxos_config.py
+++ b/test/units/modules/network/nxos/test_nxos_config.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch, MagicMock
+from units.compat.mock import patch, MagicMock
from ansible.modules.network.nxos import nxos_config
from ansible.plugins.cliconf.nxos import Cliconf
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_evpn_global.py b/test/units/modules/network/nxos/test_nxos_evpn_global.py
index ddef388ed5..f83e242d20 100644
--- a/test/units/modules/network/nxos/test_nxos_evpn_global.py
+++ b/test/units/modules/network/nxos/test_nxos_evpn_global.py
@@ -20,7 +20,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_evpn_global
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_evpn_vni.py b/test/units/modules/network/nxos/test_nxos_evpn_vni.py
index db5c37a1c0..67dda12432 100644
--- a/test/units/modules/network/nxos/test_nxos_evpn_vni.py
+++ b/test/units/modules/network/nxos/test_nxos_evpn_vni.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_evpn_vni
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_feature.py b/test/units/modules/network/nxos/test_nxos_feature.py
index 3c824b9477..d0ca483410 100644
--- a/test/units/modules/network/nxos/test_nxos_feature.py
+++ b/test/units/modules/network/nxos/test_nxos_feature.py
@@ -21,7 +21,7 @@ __metaclass__ = type
import json
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_feature
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_hsrp.py b/test/units/modules/network/nxos/test_nxos_hsrp.py
index 4bf53f2423..2cb84a224d 100644
--- a/test/units/modules/network/nxos/test_nxos_hsrp.py
+++ b/test/units/modules/network/nxos/test_nxos_hsrp.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_hsrp
from .nxos_module import TestNxosModule, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_interface.py b/test/units/modules/network/nxos/test_nxos_interface.py
index 52752d62b0..7660642fc8 100644
--- a/test/units/modules/network/nxos/test_nxos_interface.py
+++ b/test/units/modules/network/nxos/test_nxos_interface.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_interface
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_interface_ospf.py b/test/units/modules/network/nxos/test_nxos_interface_ospf.py
index 525d88e267..64258d330d 100644
--- a/test/units/modules/network/nxos/test_nxos_interface_ospf.py
+++ b/test/units/modules/network/nxos/test_nxos_interface_ospf.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_interface_ospf
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_ip_interface.py b/test/units/modules/network/nxos/test_nxos_ip_interface.py
index 5b84dc6350..2585b6a43b 100644
--- a/test/units/modules/network/nxos/test_nxos_ip_interface.py
+++ b/test/units/modules/network/nxos/test_nxos_ip_interface.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import _nxos_ip_interface
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_nxapi.py b/test/units/modules/network/nxos/test_nxos_nxapi.py
index 405272fdc2..c0eae1a341 100644
--- a/test/units/modules/network/nxos/test_nxos_nxapi.py
+++ b/test/units/modules/network/nxos/test_nxos_nxapi.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_nxapi
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_ospf.py b/test/units/modules/network/nxos/test_nxos_ospf.py
index 38374e8e70..13a8a965ca 100644
--- a/test/units/modules/network/nxos/test_nxos_ospf.py
+++ b/test/units/modules/network/nxos/test_nxos_ospf.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_ospf
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_ospf_vrf.py b/test/units/modules/network/nxos/test_nxos_ospf_vrf.py
index 2258d9c67d..d907488b2c 100644
--- a/test/units/modules/network/nxos/test_nxos_ospf_vrf.py
+++ b/test/units/modules/network/nxos/test_nxos_ospf_vrf.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_ospf_vrf
from .nxos_module import TestNxosModule, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_overlay_global.py b/test/units/modules/network/nxos/test_nxos_overlay_global.py
index c4ef81d74c..ffbfe73e8d 100644
--- a/test/units/modules/network/nxos/test_nxos_overlay_global.py
+++ b/test/units/modules/network/nxos/test_nxos_overlay_global.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_overlay_global
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_pim.py b/test/units/modules/network/nxos/test_nxos_pim.py
index 52bf64c7d8..da6c1b1043 100644
--- a/test/units/modules/network/nxos/test_nxos_pim.py
+++ b/test/units/modules/network/nxos/test_nxos_pim.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_pim
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_pim_interface.py b/test/units/modules/network/nxos/test_nxos_pim_interface.py
index 70d35fd0c9..41bab3d8cd 100644
--- a/test/units/modules/network/nxos/test_nxos_pim_interface.py
+++ b/test/units/modules/network/nxos/test_nxos_pim_interface.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_pim_interface
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_pim_rp_address.py b/test/units/modules/network/nxos/test_nxos_pim_rp_address.py
index 608bf06ef3..f6e8919daf 100644
--- a/test/units/modules/network/nxos/test_nxos_pim_rp_address.py
+++ b/test/units/modules/network/nxos/test_nxos_pim_rp_address.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_pim_rp_address
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_portchannel.py b/test/units/modules/network/nxos/test_nxos_portchannel.py
index 919b2e8473..df23856f62 100644
--- a/test/units/modules/network/nxos/test_nxos_portchannel.py
+++ b/test/units/modules/network/nxos/test_nxos_portchannel.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import _nxos_portchannel
from .nxos_module import TestNxosModule, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_static_route.py b/test/units/modules/network/nxos/test_nxos_static_route.py
index 2e04a6aefb..cb9d13cc1a 100644
--- a/test/units/modules/network/nxos/test_nxos_static_route.py
+++ b/test/units/modules/network/nxos/test_nxos_static_route.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_static_route
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_switchport.py b/test/units/modules/network/nxos/test_nxos_switchport.py
index 26dc5d990a..89463f41d1 100644
--- a/test/units/modules/network/nxos/test_nxos_switchport.py
+++ b/test/units/modules/network/nxos/test_nxos_switchport.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import _nxos_switchport
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_system.py b/test/units/modules/network/nxos/test_nxos_system.py
index 44a1b20f50..6f38dd3893 100644
--- a/test/units/modules/network/nxos/test_nxos_system.py
+++ b/test/units/modules/network/nxos/test_nxos_system.py
@@ -20,7 +20,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_system
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vlan.py b/test/units/modules/network/nxos/test_nxos_vlan.py
index dcc9f131b5..1f0b546b68 100644
--- a/test/units/modules/network/nxos/test_nxos_vlan.py
+++ b/test/units/modules/network/nxos/test_nxos_vlan.py
@@ -21,7 +21,7 @@ __metaclass__ = type
import json
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vlan
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vpc.py b/test/units/modules/network/nxos/test_nxos_vpc.py
index 088bcaf9e4..d20620b9c4 100644
--- a/test/units/modules/network/nxos/test_nxos_vpc.py
+++ b/test/units/modules/network/nxos/test_nxos_vpc.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vpc
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vpc_interface.py b/test/units/modules/network/nxos/test_nxos_vpc_interface.py
index 5c85e01909..d61dbbfc4f 100644
--- a/test/units/modules/network/nxos/test_nxos_vpc_interface.py
+++ b/test/units/modules/network/nxos/test_nxos_vpc_interface.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vpc_interface
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vrf.py b/test/units/modules/network/nxos/test_nxos_vrf.py
index 7518838cc2..6479a9f2ba 100644
--- a/test/units/modules/network/nxos/test_nxos_vrf.py
+++ b/test/units/modules/network/nxos/test_nxos_vrf.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vrf
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vrf_af.py b/test/units/modules/network/nxos/test_nxos_vrf_af.py
index 834f75c0f3..a5eaace5f5 100644
--- a/test/units/modules/network/nxos/test_nxos_vrf_af.py
+++ b/test/units/modules/network/nxos/test_nxos_vrf_af.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vrf_af
from .nxos_module import TestNxosModule, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vxlan_vtep.py b/test/units/modules/network/nxos/test_nxos_vxlan_vtep.py
index 7b925c4653..f136986753 100644
--- a/test/units/modules/network/nxos/test_nxos_vxlan_vtep.py
+++ b/test/units/modules/network/nxos/test_nxos_vxlan_vtep.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vxlan_vtep
from .nxos_module import TestNxosModule, load_fixture, set_module_args
diff --git a/test/units/modules/network/nxos/test_nxos_vxlan_vtep_vni.py b/test/units/modules/network/nxos/test_nxos_vxlan_vtep_vni.py
index ca445e40b1..798dd7ae05 100644
--- a/test/units/modules/network/nxos/test_nxos_vxlan_vtep_vni.py
+++ b/test/units/modules/network/nxos/test_nxos_vxlan_vtep_vni.py
@@ -19,7 +19,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
-from ansible.compat.tests.mock import patch
+from units.compat.mock import patch
from ansible.modules.network.nxos import nxos_vxlan_vtep_vni
from .nxos_module import TestNxosModule, load_fixture, set_module_args