Skip to content

Commit bf1d530

Browse files
committed
pep8 & pyflakes
1 parent e239bd5 commit bf1d530

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/src/OneLogin/saml2_tests/response_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def testReturnNameId(self):
131131
except Exception as e:
132132
self.assertIn('An empty NameID value found', e.message)
133133

134-
135134
def testGetNameIdData(self):
136135
"""
137136
Tests the get_nameid_data method of the OneLogin_Saml2_Response
@@ -376,14 +375,14 @@ def testGetIssuers(self):
376375
xml_4 = self.file_contents(join(self.data_path, 'responses', 'invalids', 'no_issuer_response.xml.base64'))
377376
response_4 = OneLogin_Saml2_Response(settings, xml_4)
378377
try:
379-
issuers = response_4.get_issuers()
378+
response_4.get_issuers()
380379
except Exception as e:
381380
self.assertIn('Issuer of the Response not found or multiple.', e.message)
382381

383382
xml_5 = self.file_contents(join(self.data_path, 'responses', 'invalids', 'no_issuer_assertion.xml.base64'))
384383
response_5 = OneLogin_Saml2_Response(settings, xml_5)
385384
try:
386-
issuers = response_5.get_issuers()
385+
response_5.get_issuers()
387386
except Exception as e:
388387
self.assertIn('Issuer of the Assertion not found or multiple.', e.message)
389388

@@ -693,7 +692,7 @@ def testIsInValidDuplicatedAttrs(self):
693692
xml = self.file_contents(join(self.data_path, 'responses', 'invalids', 'duplicated_attributes.xml.base64'))
694693
response = OneLogin_Saml2_Response(settings, xml)
695694
try:
696-
attributes = response.get_attributes()
695+
response.get_attributes()
697696
self.assertFalse(True)
698697
except Exception as e:
699698
self.assertEqual('Found an Attribute element with duplicated Name', e.message)

0 commit comments

Comments
 (0)