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

Part of canonical.launchpad.webapp.servers View In Hierarchy

Implements interfaces: canonical.launchpad.webapp.interfaces.INotificationResponse

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 redirect Do a redirect.

Inherited from NotificationResponse (via LaunchpadBrowserResponse):

Method addNotification See INotificationResponse.
Method removeAllNotifications See canonical.launchpad.webapp.interfaces.INotificationResponse
Method addDebugNotification See INotificationResponse.
Method addInfoNotification See INotificationResponse.
Method addNoticeNotification See INotificationResponse.
Method addWarningNotification See INotificationResponse.
Method addErrorNotification See INotificationResponse.
@property
def notifications(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.