l.r.s.t.t.TestCloseAccount(TestCaseWithFactory) : class documentation

Part of lp.registry.scripts.tests.test_closeaccount View In Hierarchy

Test the close-account script.

Unfortunately, we have no way of detecting schema updates containing new information that needs to be removed or sanitized on account closure apart from reviewers noticing and prompting developers to update this script. See Bug #120506 for more details.

Method makeScript Undocumented
Method runScript Undocumented
Method makePopulatedUser Return a person and account linked to some personal information.
Method assertRemoved Undocumented
Method assertNotRemoved Undocumented
Method test_nonexistent Undocumented
Method test_team Undocumented
Method test_unhandled_reference Undocumented
Method test_dry_run Undocumented
Method test_single_by_name Undocumented
Method test_single_by_email Undocumented
Method test_multiple Undocumented
Method test_unactivated Undocumented
Method test_retains_audit_trail Undocumented
Method test_solves_questions_in_non_final_states Undocumented
Method test_skips_questions_in_final_states Undocumented
Method test_handles_packaging_references Undocumented
Method test_skips_reported_bugs Undocumented
Method test_handles_bug_affects_person Undocumented
Method test_skips_translation_relicensing_agreements Undocumented
Method test_skips_po_file_translators Undocumented
Method test_handles_archive_subscriptions_and_tokens Undocumented
Method test_handles_hardware_submissions Undocumented
Method test_skips_bug_summary Undocumented
Method test_skips_bug_nomination Undocumented
Method test_skips_inactive_product_owner Undocumented
Method test_skips_code_import Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
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 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 makeScript(self, test_args):
def runScript(self, script):
def makePopulatedUser(self):
Return a person and account linked to some personal information.
def assertRemoved(self, account_id, person_id):
def assertNotRemoved(self, account_id, person_id):
def test_nonexistent(self):
def test_team(self):
def test_unhandled_reference(self):
def test_dry_run(self):
def test_single_by_name(self):
def test_single_by_email(self):
def test_multiple(self):
def test_unactivated(self):
def test_retains_audit_trail(self):
def test_solves_questions_in_non_final_states(self):
def test_skips_questions_in_final_states(self):
def test_handles_packaging_references(self):
def test_skips_reported_bugs(self):
def test_handles_bug_affects_person(self):
def test_skips_translation_relicensing_agreements(self):
def test_skips_po_file_translators(self):
def test_handles_archive_subscriptions_and_tokens(self):
def test_handles_hardware_submissions(self):
def test_skips_bug_summary(self):
def test_skips_bug_nomination(self):
def test_skips_inactive_product_owner(self):
def test_skips_code_import(self):
API Documentation for Launchpad, generated by pydoctor at 2019-07-18 00:00:05.