Remove mox from compute/test_instance_usage_audit_log.py

Replaced stubs.Set() with stub_out() in
tests/unit/api/openstack/compute/test_instance_usage_audit_log.py

Part of blueprint remove-mox-newton

Change-Id: Ib99e4bd74e7c2230d2c788a0370c8f9253318702
This commit is contained in:
Dao Cong Tien 2016-05-30 15:35:18 +07:00
parent d77807bfc2
commit 85bf38cfd5

View File

@ -25,7 +25,6 @@ from nova import exception
from nova import test
from nova.tests.unit.api.openstack import fakes
from nova.tests.unit.objects import test_service
from nova import utils
service_base = test_service.fake_service
@ -123,8 +122,8 @@ class InstanceUsageAuditLogTestV21(test.NoDBTestCase):
self.assertIsNone(disabled)
return TEST_COMPUTE_SERVICES
self.stubs.Set(utils, 'last_completed_audit_period',
fake_last_completed_audit_period)
self.stub_out('nova.utils.last_completed_audit_period',
fake_last_completed_audit_period)
self.stub_out('nova.db.service_get_all', fake_service_get_all)
self.stub_out('nova.db.task_log_get_all', fake_task_log_get_all)