@@ -139,8 +139,9 @@ def testReturnNameId(self):
139
139
json_settings ['security' ]['wantNameId' ] = False
140
140
settings = OneLogin_Saml2_Settings (json_settings )
141
141
142
- nameid_9 = response_9 .get_nameid ()
143
- self .assertEqual (None , nameid_9 )
142
+ response_10 = OneLogin_Saml2_Response (settings , xml_6 )
143
+ nameid_10 = response_10 .get_nameid ()
144
+ self .assertEqual (None , nameid_10 )
144
145
145
146
def testReturnNameIdFormat (self ):
146
147
"""
@@ -204,8 +205,9 @@ def testReturnNameIdFormat(self):
204
205
json_settings ['security' ]['wantNameId' ] = False
205
206
settings = OneLogin_Saml2_Settings (json_settings )
206
207
207
- nameid_9 = response_9 .get_nameid_format ()
208
- self .assertEqual ('urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress' , nameid_9 )
208
+ response_10 = OneLogin_Saml2_Response (settings , xml_6 )
209
+ nameid_10 = response_10 .get_nameid_format ()
210
+ self .assertEqual ('urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress' , nameid_10 )
209
211
210
212
def testGetNameIdData (self ):
211
213
"""
@@ -287,13 +289,13 @@ def testGetNameIdData(self):
287
289
json_settings ['security' ]['wantNameId' ] = False
288
290
settings = OneLogin_Saml2_Settings (json_settings )
289
291
290
- nameid_data_9 = response_9 . get_nameid_data ( )
291
-
292
+ response_10 = OneLogin_Saml2_Response ( settings , xml_6 )
293
+ nameid_data_10 = response_10 . get_nameid_data ()
292
294
expected_nameid_data_4 = {
293
295
'Value' : None ,
294
296
'Format' : 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress' ,
295
297
}
296
- self .assertEqual (expected_nameid_data_4 , nameid_data_9 )
298
+ self .assertEqual (expected_nameid_data_4 , nameid_data_10 )
297
299
298
300
def testCheckStatus (self ):
299
301
"""
0 commit comments