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_multiple_email_addresses 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
Method test_handles_login_token Undocumented
Method test_fails_on_undeleted_ppa Undocumented
Method test_fails_on_deleted_ppa_with_builds Undocumented
Method test_handles_empty_deleted_ppa 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):
Undocumented
def runScript(self, script):
Undocumented
def makePopulatedUser(self):
Return a person and account linked to some personal information.
def assertRemoved(self, account_id, person_id):
Undocumented
def assertNotRemoved(self, account_id, person_id):
Undocumented
def test_nonexistent(self):
Undocumented
def test_team(self):
Undocumented
def test_unhandled_reference(self):
Undocumented
def test_dry_run(self):
Undocumented
def test_single_by_name(self):
Undocumented
def test_single_by_email(self):
Undocumented
def test_multiple(self):
Undocumented
def test_multiple_email_addresses(self):
Undocumented
def test_unactivated(self):
Undocumented
def test_retains_audit_trail(self):
Undocumented
def test_solves_questions_in_non_final_states(self):
Undocumented
def test_skips_questions_in_final_states(self):
Undocumented
def test_handles_packaging_references(self):
Undocumented
def test_skips_reported_bugs(self):
Undocumented
def test_handles_bug_affects_person(self):
Undocumented
def test_skips_translation_relicensing_agreements(self):
Undocumented
def test_skips_po_file_translators(self):
Undocumented
def test_handles_archive_subscriptions_and_tokens(self):
Undocumented
def test_handles_hardware_submissions(self):
Undocumented
def test_skips_bug_summary(self):
Undocumented
def test_skips_bug_nomination(self):
Undocumented
def test_skips_inactive_product_owner(self):
Undocumented
def test_skips_code_import(self):
Undocumented
def test_handles_login_token(self):
Undocumented
def test_fails_on_undeleted_ppa(self):
Undocumented
def test_fails_on_deleted_ppa_with_builds(self):
Undocumented
def test_handles_empty_deleted_ppa(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.