Ensure to call patch_middleware_get_user() in api.test_base
ApiHelperTests.test_url_for in openstack_dashboard.test.unit.api.test_base
depends on keystone user and token information. To make this work,
we need to call utils.patch_middleware_get_user().
This commit changes ApiHelperTests to inherit APITestCase.
Closes-Bug:
@@ -236,7 +236,7 @@ class ApiVersionTests(test.TestCase):
self.fail("ConfigurationError raised inappropriately.")
-class ApiHelperTests(test.TestCase):
+class ApiHelperTests(test.APITestCase):
"""Tests for functions that don't use one of the api objects."""
def test_url_for(self):
