]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Rename duplicate test method
authorDirk Mueller <dirk@dmllr.de>
Mon, 22 Apr 2013 00:08:35 +0000 (02:08 +0200)
committerDirk Mueller <dirk@dmllr.de>
Mon, 22 Apr 2013 00:08:35 +0000 (02:08 +0200)
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

cinder/tests/api/openstack/test_wsgi.py

index 9fa89a5bc38e9949619743f38bc750cb2de73c34..77308602d0b5c03886d5f5a3a2a28a6f55894a1b 100644 (file)
@@ -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