l.b.m.t.t.TestSpecificationWorkItems(TestCaseWithFactory) : class documentation

Part of lp.blueprints.model.tests.test_specification View In Hierarchy

Test the Workitem-related methods of ISpecification.
Method setUp Undocumented
Method assertWorkItemsTextContains Undocumented
Method test_anonymous_newworkitem_not_allowed Undocumented
Method test_owner_newworkitem_allowed Undocumented
Method test_newworkitem_uses_passed_arguments Undocumented
Method test_workitems_text_no_workitems Undocumented
Method test_workitems_text_deleted_workitem Undocumented
Method test_workitems_text_single_workitem Undocumented
Method test_workitems_text_multi_workitems_all_statuses Undocumented
Method test_workitems_text_with_milestone Undocumented
Method test_workitems_text_with_implicit_and_explicit_milestone Undocumented
Method test_workitems_text_with_implicit_and_explicit_milestone_reverse Undocumented
Method test_workitems_text_with_different_milestones Undocumented
Method test_workitems_text_with_assignee Undocumented
Method test_work_items_property Undocumented
Method test_updateWorkItems_no_existing_items When there are no existing work items, updateWorkItems will create
Method test_updateWorkItems_merges_with_existing_ones Undocumented
Method test_add_duplicate_work_item Undocumented
Method test_delete_duplicate_work_item Undocumented
Method test_updateWorkItems_updates_existing_ones Undocumented
Method test_updateWorkItems_deletes_all_if_given_empty_list Undocumented
Method test_updateWorkItems_marks_removed_ones_as_deleted Undocumented
Method test_workitemspecificationset_can_unlink_milestones Undocumented
Method _dup_work_items_set_up Undocumented
Method _createWorkItemAndReturnDataDict Create a new work item for the given spec using the next available

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 assertWorkItemsTextContains(self, spec, items):
Undocumented
def test_anonymous_newworkitem_not_allowed(self):
Undocumented
def test_owner_newworkitem_allowed(self):
Undocumented
def test_newworkitem_uses_passed_arguments(self):
Undocumented
def test_workitems_text_no_workitems(self):
Undocumented
def test_workitems_text_deleted_workitem(self):
Undocumented
def test_workitems_text_single_workitem(self):
Undocumented
def test_workitems_text_multi_workitems_all_statuses(self):
Undocumented
def test_workitems_text_with_milestone(self):
Undocumented
def test_workitems_text_with_implicit_and_explicit_milestone(self):
Undocumented
def test_workitems_text_with_implicit_and_explicit_milestone_reverse(self):
Undocumented
def test_workitems_text_with_different_milestones(self):
Undocumented
def test_workitems_text_with_assignee(self):
Undocumented
def test_work_items_property(self):
Undocumented
def test_updateWorkItems_no_existing_items(self):
When there are no existing work items, updateWorkItems will create a new entry for every element in the list given to it.
def test_updateWorkItems_merges_with_existing_ones(self):
Undocumented
def _dup_work_items_set_up(self):
Undocumented
def test_add_duplicate_work_item(self):
Undocumented
def test_delete_duplicate_work_item(self):
Undocumented
def test_updateWorkItems_updates_existing_ones(self):
Undocumented
def test_updateWorkItems_deletes_all_if_given_empty_list(self):
Undocumented
def test_updateWorkItems_marks_removed_ones_as_deleted(self):
Undocumented
def _createWorkItemAndReturnDataDict(self, spec):
Create a new work item for the given spec using the next available sequence number.

Return a dict with the title, status, assignee, milestone and sequence attributes of the spec.

def test_workitemspecificationset_can_unlink_milestones(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.