From 2aee4e9c94cb927a1ed24c1d9e860e0271a00aed Mon Sep 17 00:00:00 2001 From: Dao Cong Tien Date: Mon, 30 May 2016 12:10:27 +0700 Subject: [PATCH] Remove mox from api/openstack/compute/test_fping.py Partially-Implements: blueprint remove-mox-ocata Change-Id: If16e6009474bcd1053966441e1ad9059169ad966 --- nova/tests/unit/api/openstack/compute/test_fping.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nova/tests/unit/api/openstack/compute/test_fping.py b/nova/tests/unit/api/openstack/compute/test_fping.py index 94e8432bbce3..5f7de6362260 100644 --- a/nova/tests/unit/api/openstack/compute/test_fping.py +++ b/nova/tests/unit/api/openstack/compute/test_fping.py @@ -21,7 +21,6 @@ from nova.api.openstack.compute import fping as fping_v21 from nova import exception from nova import test from nova.tests.unit.api.openstack import fakes -import nova.utils FAKE_UUID = fakes.FAKE_UUID @@ -43,10 +42,11 @@ class FpingTestV21(test.TestCase): return_servers) self.stub_out("nova.db.instance_get_by_uuid", return_server) - self.stubs.Set(nova.utils, "execute", - execute) - self.stubs.Set(self.controller_cls, "check_fping", - lambda self: None) + self.stub_out('nova.utils.execute', + execute) + self.stub_out("nova.api.openstack.compute.fping.FpingController." + "check_fping", + lambda self: None) self.controller = self.controller_cls() def _get_url(self):