diff options
| author | Dan Prince <dprince@redhat.com> | 2013-01-14 13:54:06 -0500 |
|---|---|---|
| committer | Dan Prince <dprince@redhat.com> | 2013-01-14 13:54:47 -0500 |
| commit | 42bd9c7740808bef57d22e950ff8aae326a2212e (patch) | |
| tree | 433d78ea7c7acfbf1143fad88d221095b842c19d | |
| parent | bca6818d6458a6794e5f8550be0ceed3626cd7ca (diff) | |
| download | keystone-42bd9c7740808bef57d22e950ff8aae326a2212e.tar.gz keystone-42bd9c7740808bef57d22e950ff8aae326a2212e.tar.xz keystone-42bd9c7740808bef57d22e950ff8aae326a2212e.zip | |
Enable exception format checking in the tests.
Updates the Keystone base test class so that we check for exception
formatting errors.
Change-Id: I168d8662752017050d63c83142f6fc45cd6fe38c
| -rw-r--r-- | keystone/test.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
