Test WSGI basics and provide some helper functions for other WSGI tests.
-
class nova.tests.api.test_wsgi.ControllerTest(methodName='runTest')
Bases: nova.test.TestCase
-
class TestRouter
Bases: nova.wsgi.Router
-
class TestController
Bases: nova.wsgi.Controller
-
show(req, id)
-
ControllerTest.test_response_content_type_default_when_unsupported()
-
ControllerTest.test_response_content_type_from_accept_json()
-
ControllerTest.test_response_content_type_from_accept_xml()
-
ControllerTest.test_response_content_type_from_query_extension_json()
-
ControllerTest.test_response_content_type_from_query_extension_xml()
-
ControllerTest.test_show()
-
class nova.tests.api.test_wsgi.RequestTest(methodName='runTest')
Bases: nova.test.TestCase
-
test_content_type_accept_and_query_extension()
-
test_content_type_accept_default()
-
test_content_type_from_accept_xml()
-
test_content_type_from_query_extension()
-
test_request_content_type_missing()
-
test_request_content_type_unsupported()
-
class nova.tests.api.test_wsgi.SerializerTest(methodName='runTest')
Bases: nova.test.TestCase
-
test_deserialize_empty_xml()
-
test_deserialize_json()
-
test_deserialize_xml()
-
test_json()
-
test_unsupported_content_type()
-
test_xml()
-
class nova.tests.api.test_wsgi.Test(methodName='runTest')
Bases: nova.test.TestCase
-
test_debug()
-
test_router()