Merge "Remove mox from compute/test_instance_usage_audit_log.py"

This commit is contained in:
Jenkins 2016-06-09 10:34:27 +00:00 committed by Gerrit Code Review
commit 1249617bdf

View File

@ -23,7 +23,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
@ -121,8 +120,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)