Merge "Remove mox from nova.tests.unit.api.openstack.compute.test_limits"

This commit is contained in:
Jenkins 2017-07-20 00:46:45 +00:00 committed by Gerrit Code Review
commit 67c27c4cfc
1 changed files with 6 additions and 2 deletions

View File

@ -45,8 +45,12 @@ class BaseLimitTestSuite(test.NoDBTestCase):
return {k: dict(limit=v)
for k, v in self.absolute_limits.items()}
self.stubs.Set(nova.quota.QUOTAS, "get_project_quotas",
stub_get_project_quotas)
mock_get_project_quotas = mock.patch.object(
nova.quota.QUOTAS,
"get_project_quotas",
side_effect = stub_get_project_quotas)
mock_get_project_quotas.start()
self.addCleanup(mock_get_project_quotas.stop)
def _get_time(self):
"""Return the "time" according to this test suite."""