l.r.t.t.TestPrivateTeamVisibility(TestCaseWithFactory) : class documentation

Part of lp.registry.tests.test_private_team_visibility View In Hierarchy

Tests for visibility of private teams.
Method setUp Undocumented
Method test_limitedView_visible_attributes Users with LimitedView can know identifying information like name,
Method test_anonymous_users_have_no_limitedView_permission Undocumented
Method test_some_person_cannot_see_team_details Undocumented
Method test_team_owner_can_see_members Undocumented
Method test_team_member_can_see_members Undocumented
Method test_commercial_admin_can_see_team_and_members Undocumented
Method team_owner_can_see_team_details A team owner must be able to access the team even if they are not a
Method test_invited_team_admins_can_see_team Public teams can join private teams. When adding one team to
Method test_subscriber_to_public_branch_owned_by_team Undocumented
Method test_subscriber_to_private_branch_owned_by_team Undocumented
Method test_subscriber_to_public_branch_subscribed_to_by_team Undocumented
Method test_subscriber_to_private_branch_subscribed_to_by_team Undocumented
Method test_teams_with_public_branch_review_requests Undocumented
Method test_teams_with_private_branch_review_requests Undocumented
Method test_public_git_repository_grantee Undocumented
Method test_private_git_repository_grantee Undocumented
Method test_private_ppa_subscriber Undocumented
Method test_team_subscribed_to_blueprint Undocumented
Method test_team_subscribed_to_public_bug Undocumented
Method test_team_subscribed_to_private_bug Undocumented
Method test_team_assigned_to_public_bug Undocumented
Method test_team_assigned_to_private_bug Undocumented
Method _check_permission Undocumented
Method _test_subscriber_to_branch_owned_by_team A person with visibility to any of the branches owned by the
Method _test_subscriber_to_branch_subscribed_to_by_team A person with visibility to any of the branches subscribed to by
Method _test_teams_with_branch_review_requests Undocumented
Method _test_git_repository_grantee Undocumented
Method _test_team_subscribed_to_bug Undocumented
Method _test_team_assigned_to_bug 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 test_limitedView_visible_attributes(self):
Users with LimitedView can know identifying information like name, displayname, and unique_name, but cannot know other information like team members.
def test_anonymous_users_have_no_limitedView_permission(self):
Undocumented
def test_some_person_cannot_see_team_details(self):
Undocumented
def test_team_owner_can_see_members(self):
Undocumented
def test_team_member_can_see_members(self):
Undocumented
def test_commercial_admin_can_see_team_and_members(self):
Undocumented
def team_owner_can_see_team_details(self):
A team owner must be able to access the team even if they are not a team member. When a team is created, the owner is automatically made an admin member. So we revoke that membership and check that they still have access.
def test_invited_team_admins_can_see_team(self):
Public teams can join private teams. When adding one team to another the team is invited to join and that invitation must be accepted by one of the invited team's admins. Normally the admin of the invited team is not a member of the private team and therefore cannot even see the page to accept the invitation! To resolve that situation the rules for viewing a private team include admins of invited teams.
def _check_permission(self, user, visible):
Undocumented
def _test_subscriber_to_branch_owned_by_team(self, private=True):
A person with visibility to any of the branches owned by the private team will be granted limited view permission on the team.

For private branches, a user needs to be subscribed to the branch for the branch (and hence team) to be visible.

def test_subscriber_to_public_branch_owned_by_team(self):
Undocumented
def test_subscriber_to_private_branch_owned_by_team(self):
Undocumented
def _test_subscriber_to_branch_subscribed_to_by_team(self, private=True):
A person with visibility to any of the branches subscribed to by the private team will be granted limited view permission on the team.
def test_subscriber_to_public_branch_subscribed_to_by_team(self):
Undocumented
def test_subscriber_to_private_branch_subscribed_to_by_team(self):
Undocumented
def _test_teams_with_branch_review_requests(self, private=True):
Undocumented
def test_teams_with_public_branch_review_requests(self, private=True):
Undocumented
def test_teams_with_private_branch_review_requests(self, private=True):
Undocumented
def _test_git_repository_grantee(self, private):
Undocumented
def test_public_git_repository_grantee(self):
Undocumented
def test_private_git_repository_grantee(self):
Undocumented
def test_private_ppa_subscriber(self):
Undocumented
def test_team_subscribed_to_blueprint(self):
Undocumented
def _test_team_subscribed_to_bug(self, private=True):
Undocumented
def test_team_subscribed_to_public_bug(self):
Undocumented
def test_team_subscribed_to_private_bug(self):
Undocumented
def _test_team_assigned_to_bug(self, private=True):
Undocumented
def test_team_assigned_to_public_bug(self):
Undocumented
def test_team_assigned_to_private_bug(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-07-18 00:00:05.