l.b.t.t.TestBugChanges(TestCaseWithFactory) : class documentation

Part of lp.bugs.tests.test_bugchanges View In Hierarchy

No class docstring
Method setUp Undocumented
Method newSubscriber Undocumented
Method saveOldChanges Save old activity and notifications for a test.
Method changeAttribute Set the value of attribute on obj to new_value.
Method getNewNotifications Undocumented
Method assertRecordedChange Assert that things were recorded as expected.
Method assertRecipients Undocumented
Method test_subscribe Undocumented
Method test_unsubscribe Undocumented
Method test_unsubscribe_private_bug Undocumented
Method test_title_changed Undocumented
Method test_description_changed Undocumented
Method test_bugwatch_added Undocumented
Method test_bugwatch_added_from_comment Undocumented
Method test_bugwatch_removed Undocumented
Method test_bugwatch_modified Undocumented
Method test_bugwatch_not_modified Undocumented
Method test_link_branch Undocumented
Method test_link_branch_to_complete_bug Undocumented
Method test_link_private_branch Undocumented
Method test_unlink_branch Undocumented
Method test_unlink_branch_from_complete_bug Undocumented
Method test_unlink_private_branch Undocumented
Method test_link_merge_proposal Undocumented
Method test_link_merge_proposal_to_complete_bug Undocumented
Method test_link_private_merge_proposal Undocumented
Method test_unlink_merge_proposal Undocumented
Method test_unlink_merge_proposal_from_complete_bug Undocumented
Method test_unlink_private_merge_proposal Undocumented
Method test_change_information_type Undocumented
Method test_change_information_type_using_api Undocumented
Method test_tags_added Undocumented
Method test_tags_removed Undocumented
Method test_link_cve Undocumented
Method test_unlink_cve Undocumented
Method test_attachment_added Undocumented
Method test_attachment_removed Undocumented
Method test_bugtask_added Undocumented
Method test_bugtask_added_with_assignee Undocumented
Method test_bugtask_added_with_bugwatch Undocumented
Method test_change_bugtask_importance Undocumented
Method test_change_bugtask_status Undocumented
Method test_target_bugtask_to_product Undocumented
Method test_target_bugtask_to_sourcepackage Undocumented
Method test_private_bug_target_change_doesnt_add_everyone Undocumented
Method test_add_bugwatch_to_bugtask Undocumented
Method test_remove_bugwatch_from_bugtask Undocumented
Method test_assign_bugtask Undocumented
Method test_unassign_bugtask Undocumented
Method test_target_bugtask_to_milestone Undocumented
Method test_untarget_bugtask_from_milestone Undocumented
Method test_change_bugtask_milestone Undocumented
Method test_bugtask_deleted Undocumented
Method test_product_series_nominated Undocumented
Method test_distro_series_nominated Undocumented
Method test_nomination_approved Undocumented
Method test_marked_as_duplicate Undocumented
Method test_unmarked_as_duplicate Undocumented
Method test_changed_duplicate Undocumented
Method test_duplicate_private_bug Undocumented
Method test_unmarked_as_duplicate_of_private_bug Undocumented
Method test_changed_private_duplicate Undocumented
Method test_convert_to_question_no_comment Undocumented
Method test_create_bug Undocumented
Method test_description_changed_no_self_email Undocumented
Method test_description_changed_no_self_email_indirect Undocumented
Method test_description_changed_no_muted_email Undocumented
Method test_no_lifecycle_email_despite_structural_subscription Undocumented
Method _test_unassign_bugtask Undocumented

Inherited from TestCaseWithFactory:

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 setUp(self):
Undocumented
def newSubscriber(self, target, name, level):
Undocumented
def saveOldChanges(self, bug=None, append=False):
Save old activity and notifications for a test.

This method should be called after setup. Removing the initial bug-created activity and notification messages allows for a more accurate check of new activity and notifications.

The append parameter can be used to save activity/notifications for more than one bug in a single test, as when dealing with duplicates.

def changeAttribute(self, obj, attribute, new_value):
Set the value of attribute on obj to new_value.
ReturnsThe value of attribute before modification.
def getNewNotifications(self, bug=None):
Undocumented
def assertRecordedChange(self, expected_activity=None, expected_notification=None, bug=None):
Assert that things were recorded as expected.
def assertRecipients(self, expected_recipients):
Undocumented
def test_subscribe(self):
Undocumented
def test_unsubscribe(self):
Undocumented
def test_unsubscribe_private_bug(self):
Undocumented
def test_title_changed(self):
Undocumented
def test_description_changed(self):
Undocumented
def test_bugwatch_added(self):
Undocumented
def test_bugwatch_added_from_comment(self):
Undocumented
def test_bugwatch_removed(self):
Undocumented
def test_bugwatch_modified(self):
Undocumented
def test_bugwatch_not_modified(self):
Undocumented
def test_link_branch(self):
Undocumented
def test_link_branch_to_complete_bug(self):
Undocumented
def test_link_private_branch(self):
Undocumented
def test_unlink_branch(self):
Undocumented
def test_unlink_branch_from_complete_bug(self):
Undocumented
def test_unlink_private_branch(self):
Undocumented
def test_link_merge_proposal(self):
Undocumented
def test_link_merge_proposal_to_complete_bug(self):
Undocumented
def test_link_private_merge_proposal(self):
Undocumented
def test_unlink_merge_proposal(self):
Undocumented
def test_unlink_merge_proposal_from_complete_bug(self):
Undocumented
def test_unlink_private_merge_proposal(self):
Undocumented
def test_change_information_type(self):
Undocumented
def test_change_information_type_using_api(self):
Undocumented
def test_tags_added(self):
Undocumented
def test_tags_removed(self):
Undocumented
def test_link_cve(self):
Undocumented
def test_unlink_cve(self):
Undocumented
def test_attachment_added(self):
Undocumented
def test_attachment_removed(self):
Undocumented
def test_bugtask_added(self):
Undocumented
def test_bugtask_added_with_assignee(self):
Undocumented
def test_bugtask_added_with_bugwatch(self):
Undocumented
def test_change_bugtask_importance(self):
Undocumented
def test_change_bugtask_status(self):
Undocumented
def test_target_bugtask_to_product(self):
Undocumented
def test_target_bugtask_to_sourcepackage(self):
Undocumented
def test_private_bug_target_change_doesnt_add_everyone(self):
Undocumented
def test_add_bugwatch_to_bugtask(self):
Undocumented
def test_remove_bugwatch_from_bugtask(self):
Undocumented
def test_assign_bugtask(self):
Undocumented
def _test_unassign_bugtask(self, bug_task, expected_recipients):
Undocumented
def test_unassign_bugtask(self):
Undocumented
def test_target_bugtask_to_milestone(self):
Undocumented
def test_untarget_bugtask_from_milestone(self):
Undocumented
def test_change_bugtask_milestone(self):
Undocumented
def test_bugtask_deleted(self):
Undocumented
def test_product_series_nominated(self):
Undocumented
def test_distro_series_nominated(self):
Undocumented
def test_nomination_approved(self):
Undocumented
def test_marked_as_duplicate(self):
Undocumented
def test_unmarked_as_duplicate(self):
Undocumented
def test_changed_duplicate(self):
Undocumented
def test_duplicate_private_bug(self):
Undocumented
def test_unmarked_as_duplicate_of_private_bug(self):
Undocumented
def test_changed_private_duplicate(self):
Undocumented
def test_convert_to_question_no_comment(self):
Undocumented
def test_create_bug(self):
Undocumented
def test_description_changed_no_self_email(self):
Undocumented
def test_description_changed_no_self_email_indirect(self):
Undocumented
def test_description_changed_no_muted_email(self):
Undocumented
def test_no_lifecycle_email_despite_structural_subscription(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-07-19 00:00:17.