@@ -98,14 +98,14 @@ def testReturnNameId(self):
9898
9999 xml_4 = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'no_nameid.xml.base64' ))
100100 response_4 = OneLogin_Saml2_Response (settings , xml_4 )
101- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
101+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
102102 response_4 .get_nameid ()
103103
104104 json_settings ['security' ]['wantNameId' ] = True
105105 settings = OneLogin_Saml2_Settings (json_settings )
106106
107107 response_5 = OneLogin_Saml2_Response (settings , xml_4 )
108- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
108+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
109109 response_5 .get_nameid ()
110110
111111 json_settings ['security' ]['wantNameId' ] = False
@@ -119,7 +119,7 @@ def testReturnNameId(self):
119119 settings = OneLogin_Saml2_Settings (json_settings )
120120
121121 response_7 = OneLogin_Saml2_Response (settings , xml_4 )
122- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
122+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
123123 response_7 .get_nameid ()
124124
125125 json_settings ['strict' ] = True
@@ -172,14 +172,14 @@ def testGetNameIdData(self):
172172
173173 xml_4 = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'no_nameid.xml.base64' ))
174174 response_4 = OneLogin_Saml2_Response (settings , xml_4 )
175- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
175+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
176176 response_4 .get_nameid_data ()
177177
178178 json_settings ['security' ]['wantNameId' ] = True
179179 settings = OneLogin_Saml2_Settings (json_settings )
180180
181181 response_5 = OneLogin_Saml2_Response (settings , xml_4 )
182- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
182+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
183183 response_5 .get_nameid_data ()
184184
185185 json_settings ['security' ]['wantNameId' ] = False
@@ -193,7 +193,7 @@ def testGetNameIdData(self):
193193 settings = OneLogin_Saml2_Settings (json_settings )
194194
195195 response_7 = OneLogin_Saml2_Response (settings , xml_4 )
196- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
196+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
197197 response_7 .get_nameid_data ()
198198
199199 json_settings ['security' ]['wantNameId' ] = False
@@ -207,7 +207,7 @@ def testGetNameIdData(self):
207207 settings = OneLogin_Saml2_Settings (json_settings )
208208
209209 response_7 = OneLogin_Saml2_Response (settings , xml_4 )
210- with self .assertRaisesRegexp (Exception , 'Not NameID found in the assertion of the Response' ):
210+ with self .assertRaisesRegexp (Exception , 'NameID not found in the assertion of the Response' ):
211211 response_7 .get_nameid_data ()
212212
213213 json_settings ['strict' ] = True
0 commit comments