Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pitbulk committed Jun 17, 2024
1 parent 49d1c02 commit b96379b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/src/OneLogin/saml2_tests/response_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
from base64 import b64decode

from lxml import etree
from datetime import datetime
from datetime import timedelta
import json
import sys
from os.path import dirname, join, exists
Expand Down Expand Up @@ -1568,18 +1566,15 @@ def testIsInValidEncIssues_2(self):
'http_host': 'pytoolkit.com',
'server_port': 8000
}

message_2 = self.file_contents(join(self.data_path, 'responses', 'valid_encrypted_assertion_encrypted_nameid.xml.base64'))
response_6 = OneLogin_Saml2_Response(settings_2, message_2)

if sys.version_info > (3, 2, 0):
with self.assertWarns(Warning) as context:
with self.assertWarns(Warning):
self.assertFalse(response_6.is_valid(request_data))
self.assertEqual('The attributes have expired, based on the SessionNotOnOrAfter of the AttributeStatement of this Response', response_6.get_error())




request_data = {
'script_name': '',
'request_uri': '?acs',
Expand Down

0 comments on commit b96379b

Please sign in to comment.