def test_canonicalizes(self): self.make_team() state = self.client.GET('/theenterprise/', return_after='dispatch_request_to_filesystem', want='state') with self.assertRaises(Response) as cm: utils.get_team(state) assert cm.exception.code == 302 assert cm.exception.headers['Location'] == '/TheEnterprise/'
def test_get_team_canonicalizes(self): self.make_team() state = self.client.GET( '/theenterprise/' , return_after='dispatch_request_to_filesystem' , want='state' ) with self.assertRaises(Response) as cm: utils.get_team(state) assert cm.exception.code == 302 assert cm.exception.headers['Location'] == '/TheEnterprise/'
def test_get_team_gets_team(self): team = self.make_team() state = self.client.GET( '/TheEnterprise/' , return_after='dispatch_request_to_filesystem' , want='state' ) assert utils.get_team(state) == team