@@ -93,7 +93,7 @@ def testReturnNameId(self):
9393 response_5 .get_nameid ()
9494 self .assertTrue (False )
9595 except Exception as e :
96- self .assertIn ('Not NameID found in the assertion of the Response' , e . message )
96+ self .assertIn ('Not NameID found in the assertion of the Response' , str ( e ) )
9797
9898 json_settings ['security' ]['wantNameId' ] = False
9999 settings = OneLogin_Saml2_Settings (json_settings )
@@ -110,7 +110,7 @@ def testReturnNameId(self):
110110 response_7 .get_nameid ()
111111 self .assertTrue (False )
112112 except Exception as e :
113- self .assertIn ('Not NameID found in the assertion of the Response' , e . message )
113+ self .assertIn ('Not NameID found in the assertion of the Response' , str ( e ) )
114114
115115 def testGetNameIdData (self ):
116116 """
@@ -163,7 +163,7 @@ def testGetNameIdData(self):
163163 response_5 .get_nameid_data ()
164164 self .assertTrue (False )
165165 except Exception as e :
166- self .assertIn ('Not NameID found in the assertion of the Response' , e . message )
166+ self .assertIn ('Not NameID found in the assertion of the Response' , str ( e ) )
167167
168168 json_settings ['security' ]['wantNameId' ] = False
169169 settings = OneLogin_Saml2_Settings (json_settings )
@@ -180,7 +180,7 @@ def testGetNameIdData(self):
180180 response_7 .get_nameid_data ()
181181 self .assertTrue (False )
182182 except Exception as e :
183- self .assertIn ('Not NameID found in the assertion of the Response' , e . message )
183+ self .assertIn ('Not NameID found in the assertion of the Response' , str ( e ) )
184184
185185 def testCheckStatus (self ):
186186 """
0 commit comments