From 88e3194b2f627b09cc1d2d250b12a088301e84cd Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Fri, 24 Aug 2012 20:42:10 -0400 Subject: Remove test_keypair_create_quota_limit() test_keypair_create_quota_limit() is defined twice. The two tests are not exactly the same but functionally equivallent. Remove the first definition. Partially fix bug 1037183 Change-Id: I99bd3cd54cf55ff071ced10e931025813d0c92b0 --- nova/tests/api/openstack/compute/contrib/test_keypairs.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/nova/tests/api/openstack/compute/contrib/test_keypairs.py b/nova/tests/api/openstack/compute/contrib/test_keypairs.py index d59ca3164..0019f757b 100644 --- a/nova/tests/api/openstack/compute/contrib/test_keypairs.py +++ b/nova/tests/api/openstack/compute/contrib/test_keypairs.py @@ -123,21 +123,6 @@ class KeypairsTest(test.TestCase): res_dict = jsonutils.loads(res.body) self.assertEqual(res.status_int, 400) - def test_keypair_create_quota_limit(self): - - def fake_quotas_count(self, context, resource, *args, **kwargs): - return 100 - - self.stubs.Set(QUOTAS, "count", fake_quotas_count) - - req = webob.Request.blank('/v2/fake/os-keypairs') - req.method = 'POST' - req.headers['Content-Type'] = 'application/json' - body = {'keypair': {'name': 'foo'}} - req.body = jsonutils.dumps(body) - res = req.get_response(fakes.wsgi_app()) - self.assertEqual(res.status_int, 413) - def test_keypair_import(self): body = { 'keypair': { -- cgit