l.s.w.t.t.TestLaunchpadBrowserRequestMixin : class documentation

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

Known subclasses: lp.services.webapp.tests.test_servers.TestLaunchpadBrowserRequestMixinWithLaunchpadBrowserRequest, lp.services.webapp.tests.test_servers.TestLaunchpadBrowserRequestMixinWithLaunchpadTestRequest

Tests for LaunchpadBrowserRequestMixin.

As LaunchpadBrowserRequestMixin is a mixin, it needs to be tested when mixed into another class, hence why this does not inherit from TestCase.

Method test_is_ajax_false Normal requests do not define HTTP_X_REQUESTED_WITH.
Method test_is_ajax_true Requests with HTTP_X_REQUESTED_WITH set are ajax requests.
Method test_getURL getURL() overrides HTTPRequest.getURL(), but behaves identically by
Method test_getURL_include_query getURL() overrides HTTPRequest.getURL(), but appends the query string
def test_is_ajax_false(self):
Normal requests do not define HTTP_X_REQUESTED_WITH.
def test_is_ajax_true(self):
Requests with HTTP_X_REQUESTED_WITH set are ajax requests.
def test_getURL(self):
getURL() overrides HTTPRequest.getURL(), but behaves identically by default.
def test_getURL_include_query(self):
getURL() overrides HTTPRequest.getURL(), but appends the query string if include_query=True.
API Documentation for Launchpad, generated by pydoctor at 2019-04-20 00:00:04.