diff --git a/cinder/test.py b/cinder/test.py index 2972a9f476b..7c7e11e81a9 100644 --- a/cinder/test.py +++ b/cinder/test.py @@ -228,7 +228,6 @@ class TestCase(testtools.TestCase): group='oslo_policy') self._disable_osprofiler() - self._disallow_invalid_uuids() # NOTE(geguileo): This is required because common get_by_id method in # cinder.db.sqlalchemy.api caches get methods and if we use a mocked @@ -257,17 +256,6 @@ class TestCase(testtools.TestCase): return_value=mock_decorator) p.start() - def _disallow_invalid_uuids(self): - def catch_uuid_warning(message, *args, **kwargs): - ovo_message = "invalid UUID. Using UUIDFields with invalid UUIDs " \ - "is no longer supported" - if ovo_message in message: - raise AssertionError(message) - - p = mock.patch("warnings.warn", - side_effect=catch_uuid_warning) - p.start() - def _common_cleanup(self): """Runs after each test method to tear down test environment."""