87
87
def test_team_scope_outside_team(self):
88
88
request = LaunchpadTestRequest()
89
90
scopes = webapp.ScopesFromRequest(request)
91
91
self.assertFalse(scopes.lookup('team:nonexistent'))
93
93
def test_team_scope_in_team(self):
94
94
request = LaunchpadTestRequest()
96
95
member = self.factory.makePerson()
97
96
team = self.factory.makeTeam(members=[member])
99
99
self.assertTrue(scopes.lookup('team:%s' % team.name))