@@ -100,14 +100,14 @@ def testReturnNameId(self):
100100
101101 xml_4 = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'no_nameid.xml.base64' ))
102102 response_4 = OneLogin_Saml2_Response (settings , xml_4 )
103- with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'Not NameID found in the assertion of the Response' ):
103+ with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'NameID not found in the assertion of the Response' ):
104104 response_4 .get_nameid ()
105105
106106 json_settings ['security' ]['wantNameId' ] = True
107107 settings = OneLogin_Saml2_Settings (json_settings )
108108
109109 response_5 = OneLogin_Saml2_Response (settings , xml_4 )
110- with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'Not NameID found in the assertion of the Response' ):
110+ with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'NameID not found in the assertion of the Response' ):
111111 response_5 .get_nameid ()
112112
113113 json_settings ['security' ]['wantNameId' ] = False
@@ -121,7 +121,7 @@ def testReturnNameId(self):
121121 settings = OneLogin_Saml2_Settings (json_settings )
122122
123123 response_7 = OneLogin_Saml2_Response (settings , xml_4 )
124- with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'Not NameID found in the assertion of the Response' ):
124+ with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'NameID not found in the assertion of the Response' ):
125125 response_7 .get_nameid ()
126126
127127 json_settings ['strict' ] = True
@@ -175,14 +175,14 @@ def testGetNameIdData(self):
175175
176176 xml_4 = self .file_contents (join (self .data_path , 'responses' , 'invalids' , 'no_nameid.xml.base64' ))
177177 response_4 = OneLogin_Saml2_Response (settings , xml_4 )
178- with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'Not NameID found in the assertion of the Response' ):
178+ with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'NameID not found in the assertion of the Response' ):
179179 response_4 .get_nameid_data ()
180180
181181 json_settings ['security' ]['wantNameId' ] = True
182182 settings = OneLogin_Saml2_Settings (json_settings )
183183
184184 response_5 = OneLogin_Saml2_Response (settings , xml_4 )
185- with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'Not NameID found in the assertion of the Response' ):
185+ with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'NameID not found in the assertion of the Response' ):
186186 response_5 .get_nameid_data ()
187187
188188 json_settings ['security' ]['wantNameId' ] = False
@@ -196,7 +196,7 @@ def testGetNameIdData(self):
196196 settings = OneLogin_Saml2_Settings (json_settings )
197197
198198 response_7 = OneLogin_Saml2_Response (settings , xml_4 )
199- with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'Not NameID found in the assertion of the Response' ):
199+ with self .assertRaisesRegexp (OneLogin_Saml2_ValidationError , 'NameID not found in the assertion of the Response' ):
200200 response_7 .get_nameid_data ()
201201
202202 json_settings ['strict' ] = True
0 commit comments