From 42bd9c7740808bef57d22e950ff8aae326a2212e Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 14 Jan 2013 13:54:06 -0500 Subject: Enable exception format checking in the tests. Updates the Keystone base test class so that we check for exception formatting errors. Change-Id: I168d8662752017050d63c83142f6fc45cd6fe38c --- keystone/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keystone/test.py b/keystone/test.py index bca8a22d..19655a46 100644 --- a/keystone/test.py +++ b/keystone/test.py @@ -32,6 +32,7 @@ from keystone.common import logging from keystone.common import utils from keystone.common import wsgi from keystone import config +from keystone import exception from keystone import identity from keystone import policy from keystone import token @@ -187,6 +188,7 @@ class TestCase(NoModule, unittest.TestCase): testsdir('test_overrides.conf')]) self.mox = mox.Mox() self.stubs = stubout.StubOutForTesting() + self.stubs.Set(exception, '_FATAL_EXCEPTION_FORMAT_ERRORS', True) def config(self, config_files): CONF(args=[], project='keystone', default_config_files=config_files) -- cgit