Part of lp.services.webapp.tests.test_errorlog View In Hierarchy
Method | setUp | Undocumented |
Method | test_configure | Test ErrorReportingUtility.setConfigSection(). |
Method | test_multiple_raises_in_request | An OOPS links to the previous OOPS in the request, if any. |
Method | test_raising_with_request | Test ErrorReportingUtility.raising() with a request |
Method | test_raising_with_xmlrpc_request | Undocumented |
Method | test_raising_non_utf8_request_param_key_bug_896959 | Undocumented |
Method | test_raising_with_webservice_request | Undocumented |
Method | test_raising_for_script | Test ErrorReportingUtility.raising with a ScriptRequest. |
Method | test_raising_with_unprintable_exception | Undocumented |
Method | test_raising_unauthorized_without_request | Unauthorized exceptions are logged when there's no request. |
Method | test_raising_unauthorized_without_principal | Unauthorized exceptions are logged when the request has no |
Method | test_raising_unauthorized_with_unauthenticated_principal | Unauthorized exceptions are not logged when the request has an |
Method | test_raising_unauthorized_with_authenticated_principal | Unauthorized exceptions are logged when the request has an |
Method | test_raising_translation_unavailable | Test ErrorReportingUtility.raising() with a TranslationUnavailable |
Method | test_ignored_exceptions_for_offsite_referer | Undocumented |
Method | test_ignored_exceptions_for_offsite_referer_reported | Undocumented |
Method | test_ignored_exceptions_for_cross_vhost_referer_reported | Undocumented |
Method | test_ignored_exceptions_for_criss_cross_vhost_referer_reported | Undocumented |
Method | test_ignored_exceptions_for_offsite_referer_not_reported | Undocumented |
Method | test_raising_no_referrer_error | Test ErrorReportingUtility.raising() with a NoReferrerError |
Method | test_raising_with_string_as_traceback | Undocumented |
Method | test_oopsMessage | oopsMessage pushes and pops the messages. |
Method | test__makeErrorReport_includes_oops_messages | The error report should include the oops messages. |
Method | test__makeErrorReport_combines_request_and_error_vars | The oops messages should be distinct from real request vars. |
Method | test_filter_session_statement | Removes quoted strings if database_id is SQL-session. |
Method | test_filter_session_statement_noop | If database_id is not SQL-session, it's a no-op. |
Method | test_session_queries_filtered | Test that session queries are filtered. |
Inherited from TestCase:
Method | becomeDbUser | Commit, then log into the database as dbuser . |
Method | __str__ | The string representation of a test is its id. |
Method | useContext | Use the supplied context in this test. |
Method | makeTemporaryDirectory | Create a temporary directory, and return its path. |
Method | installKarmaRecorder | Set up and return a KarmaRecorder . |
Method | assertProvides | Assert 'obj' correctly provides 'interface'. |
Method | assertNotifies | Assert that a callable performs a given notification. |
Method | assertNoNotification | Assert that no notifications are generated by the callable. |
Method | assertSqlAttributeEqualsDate | Fail unless the value of the attribute is equal to the date. |
Method | assertTextMatchesExpressionIgnoreWhitespace | Undocumented |
Method | assertIsInstance | Assert that an instance is an instance of assert_class. |
Method | assertIsNot | Assert that expected is not the same object as observed . |
Method | assertContentEqual | Assert that 'iter1' has the same content as 'iter2'. |
Method | assertRaisesWithContent | Check if the given exception is raised with given content. |
Method | assertBetween | Assert that 'variable' is strictly between two boundaries. |
Method | assertVectorEqual | Apply assertEqual to all given pairs in one go. |
Method | expectedLog | Expect a log to be written that matches the regex. |
Method | pushConfig | Push some key-value pairs into a section of the config. |
Method | attachOopses | Undocumented |
Method | attachLibrarianLog | Include the logChunks from fixture in the test details. |
Method | assertStatementCount | Assert that the expected number of SQL statements occurred. |
Method | useTempDir | Use a temporary directory for this test. |
Method | assertEmailHeadersEqual | Assert that two email headers are equal. |
Method | assertStartsWith | Undocumented |
Method | assertEndsWith | Asserts that s ends with suffix. |
Method | checkPermissions | Check if the used_permissions match expected_permissions. |
Method | assertEmailQueueLength | Pop the email queue, assert its length, and return it. |
Method | _unfoldEmailHeader | Unfold a multiline email header. |
An OOPS is not recorded when a TranslationUnavailable exception is raised.
An OOPS is not recorded when a NoReferrerError exception is raised.