python3: remove dict.iterkeys

This commit is contained in:
Paul Marillonnet 2019-04-10 18:43:26 +02:00
parent 066341c883
commit a527949280
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ class CasTests(Authentic2TestCase):
ticket_id = urlparse.parse_qs(response.url.split('?')[1])[constants.TICKET_PARAM][0]
response = client.get('/idp/cas/serviceValidate', {constants.TICKET_PARAM:
ticket_id, constants.SERVICE_PARAM: self.URL, constants.PGT_URL_PARAM: self.PGT_URL})
for key in client.session.iterkeys():
for key in client.session.keys():
if key.startswith(constants.PGT_IOU_PREFIX):
pgt_iou = key
pgt = client.session[key]