l.s.w.s.LaunchpadTestResponse(LaunchpadBrowserResponse) : class documentation

Part of lp.services.webapp.servers View In Hierarchy

Mock response for use in unit and functional tests.

>>> request = LaunchpadTestRequest()
>>> response = request.response
>>> isinstance(response, LaunchpadTestResponse)
True
>>> INotificationResponse.providedBy(response)
True
>>> response.addWarningNotification('Warning Notification')
>>> request.notifications[0].message
u'Warning Notification'
Method notifications Undocumented

Inherited from LaunchpadBrowserResponse:

Method __init__ Undocumented
Method setHeader Undocumented
Method addHeader Undocumented
Method redirect Do a redirect.
Method _validateHeader Undocumented

Inherited from NotificationResponse (via LaunchpadBrowserResponse):

Method addNotification See INotificationResponse.
Method removeAllNotifications See lp.services.webapp.interfaces.INotificationResponse
Method addDebugNotification See INotificationResponse.
Method addInfoNotification See INotificationResponse.
Method addWarningNotification See INotificationResponse.
Method addErrorNotification See INotificationResponse.
@property
def notifications(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2020-07-03 00:00:04.