From: Dirk Mueller Date: Mon, 22 Apr 2013 00:08:35 +0000 (+0200) Subject: Rename duplicate test method X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=3727324c6c2086fe72a72bd13e1af44959737b7c;p=openstack-build%2Fcinder-build.git Rename duplicate test method test_get_method_unknown_controller_action was defined twice, checking however for different things. Rename the 2nd instance to test_get_method_undefined_controller_action instead, otherwise it gets overwritten later and not run. Increases test coverage Change-Id: I64b62560d6db9f6378df8fbc21bd9fada5088b89 --- diff --git a/cinder/tests/api/openstack/test_wsgi.py b/cinder/tests/api/openstack/test_wsgi.py index 9fa89a5bc..77308602d 100644 --- a/cinder/tests/api/openstack/test_wsgi.py +++ b/cinder/tests/api/openstack/test_wsgi.py @@ -215,7 +215,7 @@ class ResourceTest(test.TestCase): expected = 'off' self.assertEqual(actual, expected) - def test_get_method_unknown_controller_action(self): + def test_get_method_undefined_controller_action(self): class Controller(object): def index(self, req, pants=None): return pants