From: Tom Barron Date: Fri, 11 Mar 2016 10:55:02 +0000 (-0500) Subject: Enable api.view.test_versions unit tests X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0c80c1630ce20ad57e849cbd9e91cbc0d8015bc4;p=openstack-build%2Fcinder-build.git Enable api.view.test_versions unit tests This commit adds a init file so that this unit test module gets run and modifies test_generate_href_defaults so that it works with our codebase. Change-Id: I39bbdb0ca5da5dd5867923491ca8e843289a476a --- diff --git a/cinder/tests/unit/api/views/__init__.py b/cinder/tests/unit/api/views/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/cinder/tests/unit/api/views/test_versions.py b/cinder/tests/unit/api/views/test_versions.py index 8f430a84c..b21fdd2e2 100644 --- a/cinder/tests/unit/api/views/test_versions.py +++ b/cinder/tests/unit/api/views/test_versions.py @@ -121,7 +121,7 @@ class ViewBuilderTestCase(test.TestCase): result = self._get_builder()._generate_href() - self.assertEqual('http://localhost/v1/', result) + self.assertEqual('http://localhost/v3/', result) @ddt.data( ('v2', None, URL_BASE + 'v2/'),