l.s.w.t.t.TestVhostWebserviceFactory(WebServiceTestCase) : class documentation

Part of lp.services.webapp.tests.test_servers View In Hierarchy

No class docstring
Class VHostTestBrowserRequest Undocumented
Class VHostTestPublication Undocumented
Method setUp Undocumented
Method wsgi_env Simulate a WSGI application environment.
Method api_path Requests to this path should be treated as webservice requests.
Method non_api_path Requests to this path should not be treated as webservice requests.
Method test_factory_produces_webservice_objects The factory should produce WebService request and publication
Method test_factory_produces_normal_request_objects The factory should return the request and publication factories
Method test_factory_processes_webservice_http_methods The factory should accept the HTTP methods for requests that
Method test_factory_rejects_normal_http_methods The factory should reject some HTTP methods for requests that
Method test_factory_understands_webservice_paths The factory should know if a path is directed at a web service
def setUp(self):
Undocumented
def wsgi_env(self, path, method='GET'):
Simulate a WSGI application environment.
@property
def api_path(self):
Requests to this path should be treated as webservice requests.
@property
def non_api_path(self):
Requests to this path should not be treated as webservice requests.
def test_factory_produces_webservice_objects(self):
The factory should produce WebService request and publication objects for requests to the /api root URL.
def test_factory_produces_normal_request_objects(self):
The factory should return the request and publication factories specified in it's constructor if the request is not bound for the web service.
def test_factory_processes_webservice_http_methods(self):
The factory should accept the HTTP methods for requests that should be processed by the web service.
def test_factory_rejects_normal_http_methods(self):
The factory should reject some HTTP methods for requests that are not bound for the web service.

This includes methods like 'PUT' and 'PATCH'.

def test_factory_understands_webservice_paths(self):
The factory should know if a path is directed at a web service resource path.
API Documentation for Launchpad, generated by pydoctor at 2018-12-19 00:00:19.