Merge ~cjwatson/launchpad:py3-test-team-webservice into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 0d527b1da0494fa568f717cdd3cc91b14f3cbbda
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:py3-test-team-webservice
Merge into: launchpad:master
Diff against target: 28 lines (+4/-2)
1 file modified
lib/lp/registry/tests/test_team_webservice.py (+4/-2)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+398701@code.launchpad.net

Commit message

Port lp.registry.tests.test_team_webservice to print_function

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Self-approving (trivial).

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/registry/tests/test_team_webservice.py b/lib/lp/registry/tests/test_team_webservice.py
index 345213f..533a8f9 100644
--- a/lib/lp/registry/tests/test_team_webservice.py
+++ b/lib/lp/registry/tests/test_team_webservice.py
@@ -1,6 +1,8 @@
1# Copyright 2010-2012 Canonical Ltd. This software is licensed under the1# Copyright 2010-2012 Canonical Ltd. This software is licensed under the
2# GNU Affero General Public License version 3 (see the file LICENSE).2# GNU Affero General Public License version 3 (see the file LICENSE).
33
4from __future__ import absolute_import, print_function
5
4__metaclass__ = type6__metaclass__ = type
57
6from lazr.restfulclient.errors import (8from lazr.restfulclient.errors import (
@@ -150,7 +152,7 @@ class TestTeamLimitedViewAccess(TestCaseWithFactory):
150 team = launchpad.projects['some-product'].bug_supervisor152 team = launchpad.projects['some-product'].bug_supervisor
151 failure_regex = '.*permission to see.*'153 failure_regex = '.*permission to see.*'
152 with ExpectedException(ValueError, failure_regex):154 with ExpectedException(ValueError, failure_regex):
153 print team.name155 print(team.name)
154156
155 def test_authorised_user_can_see_team_limitedView_details(self):157 def test_authorised_user_can_see_team_limitedView_details(self):
156 # Test that a user with limitedView permission can access the team and158 # Test that a user with limitedView permission can access the team and
@@ -170,4 +172,4 @@ class TestTeamLimitedViewAccess(TestCaseWithFactory):
170 failure_regex = '(.|\n)*api_activemembers.*launchpad.View(.|\n)*'172 failure_regex = '(.|\n)*api_activemembers.*launchpad.View(.|\n)*'
171 with ExpectedException(Unauthorized, failure_regex):173 with ExpectedException(Unauthorized, failure_regex):
172 members = team.members174 members = team.members
173 print members.total_size175 print(members.total_size)

Subscribers

People subscribed via source and target branches

to status/vote changes: