Unit tests for cinder.wsgi.
-
class ExceptionTest(methodName='runTest')
Bases: cinder.test.TestCase
-
test_exception_with_none_code_throws_500()
-
test_non_cinder_exception_mapping()
-
test_non_cinder_notfound_exception_mapping()
-
test_quota_error_mapping()
-
test_safe_exceptions_are_described_in_faults()
-
test_unsafe_exceptions_are_not_described_in_faults()
-
class TestLoaderNormalFilesystem(methodName='runTest')
Bases: unittest.TestCase
Loader tests with normal filesystem (unmodified os.path module).
-
setUp()
-
tearDown()
-
test_app_found()
-
test_app_not_found()
-
test_config_found()
-
class TestLoaderNothingExists(methodName='runTest')
Bases: cinder.test.TestCase
Loader tests where os.path.exists always returns False.
-
setUp()
-
test_config_not_found()
-
class TestWSGIServer(methodName='runTest')
Bases: unittest.TestCase
WSGI server tests.
-
test_no_app()
-
test_start_random_port()