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 . |