Part of lp.app.browser.tests.test_launchpad View In Hierarchy
Known subclasses: lp.app.browser.tests.test_launchpad.TestBranchTraversal, lp.app.browser.tests.test_launchpad.TestCodeTraversal, lp.app.browser.tests.test_launchpad.TestPersonTraversal, lp.app.browser.tests.test_launchpad.TestProductTraversal
| Method | assertDisplaysNotification | Assert that an invalid path redirects back to referrer. |
| Method | assertNotFound | Undocumented |
| Method | assertRedirects | Undocumented |
| Method | traverse | Traverse to 'path' using a 'LaunchpadRootNavigation' object. |
| Method | _validateNotificationContext | Check the browser notifications associated with the request. |
Check the browser notifications associated with the request.
Ensure that the notification instances attached to the request match
the expected values for text and type.
:param notification: The exact notification text to validate. If None
then we don't care what the notification text is, so long as there
is some.
: param level: the required notification level
Assert that an invalid path redirects back to referrer.
The request object is expected to have a notification message to
display to the user to explain the reason for the error.
:param path: The path to check
:param notification: The exact notification text to validate. If None
then we don't care what the notification text is, so long as there
is some.
: param level: the required notification level
Using the Zope traversal machinery, traverse to the path given by
'segments', starting at a LaunchpadRootNavigation object.
CAUTION: Prefer test_traverse to this method, because it correctly establishes the global request.
| Parameters | path | A slash-delimited path. |
| use_default_referer | If True, set the referer attribute in the request header to DEFAULT_REFERER = "http://launchpad.test" (otherwise it remains as None) | |
| Returns | The object found. | |