l.s.m.t.t.TestLPModerateTestCase(MailmanTestCase) : class documentation

Part of lp.services.mailman.tests.test_lpmoderate View In Hierarchy

Test lpmoderate.

Mailman process() methods quietly return. They may set msg_data key-values or raise an error to end processing. These tests often check for errors, but that does not mean there is an error condition, it only means message processing has reached a final decision. Messages that do not cause a final decision pass through, and the process() methods ends without a return.

Method setUp Undocumented
Method tearDown Undocumented
Method test_process_message_from_preapproved Undocumented
Method test_process_message_from_subscriber Undocumented
Method test_process_message_from_lp_user_held_for_moderation Undocumented
Method test_process_message_with_non_ascii_from_lp_user_held Undocumented
Method test_process_duplicate_message_discarded Undocumented
Method test_process_empty_mesage_from_nonsubcriber_discarded Undocumented
Method test_process_message_from_list_discarded Undocumented

Inherited from MailmanTestCase:

Method makeMailmanList Undocumented
Method makeMailmanListWithoutTeam Undocumented
Method cleanMailmanList Undocumented
Method makeMailmanMessage Undocumented
Method get_log_entry Return the first matched text line found in the log.
Method get_mark Return the --MARK-- entry from the log or None.
Method reset_log Truncate the log.
Method assertIsEnqueued Assert the message was appended to the incoming queue.
Method raise_proxy_exception Raise an exception when calling the passed proxy method name.

Inherited from TestCaseWithFactory (via MailmanTestCase):

Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via MailmanTestCase, TestCaseWithFactory):

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.
def setUp(self):
def tearDown(self):
def test_process_message_from_preapproved(self):
def test_process_message_from_subscriber(self):
def test_process_message_from_lp_user_held_for_moderation(self):
def test_process_message_with_non_ascii_from_lp_user_held(self):
def test_process_duplicate_message_discarded(self):
def test_process_empty_mesage_from_nonsubcriber_discarded(self):
def test_process_message_from_list_discarded(self):
API Documentation for Launchpad, generated by pydoctor at 2019-11-19 00:00:37.