@@ -271,7 +271,6 @@ def testCheckOneCondition(self):
271271 response_2 = OneLogin_Saml2_Response (settings , xml_2 )
272272 self .assertTrue (response_2 .check_one_condition ())
273273
274-
275274 def testCheckOneAuthnStatement (self ):
276275 """
277276 Tests the check_one_authnstatement method of SamlResponse
@@ -362,14 +361,14 @@ def testGetIssuers(self):
362361 xml_4 = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'no_issuer_response.xml.base64' ))
363362 response_4 = OneLogin_Saml2_Response (settings , xml_4 )
364363 try :
365- issuers = response_4 .get_issuers ()
364+ response_4 .get_issuers ()
366365 except Exception as e :
367366 self .assertIn ('Issuer of the Response not found or multiple.' , e .message )
368367
369368 xml_5 = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'no_issuer_assertion.xml.base64' ))
370369 response_5 = OneLogin_Saml2_Response (settings , xml_5 )
371370 try :
372- issuers = response_5 .get_issuers ()
371+ response_5 .get_issuers ()
373372 except Exception as e :
374373 self .assertIn ('Issuer of the Assertion not found or multiple.' , e .message )
375374
@@ -737,7 +736,7 @@ def testIsInValidDuplicatedAttrs(self):
737736 xml = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'duplicated_attributes.xml.base64' ))
738737 response = OneLogin_Saml2_Response (settings , xml )
739738 try :
740- attributes = response .get_attributes ()
739+ response .get_attributes ()
741740 self .assertFalse (True )
742741 except Exception as e :
743742 self .assertEqual ('Found an Attribute element with duplicated Name' , e .message )
0 commit comments