Skip to content

Commit a42554a

Browse files
committed
Rename deprecated assertations
1 parent 054f8e6 commit a42554a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/src/OneLogin/saml2_tests/response_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def testCheckOneCondition(self):
279279
settings.set_strict(True)
280280
response = OneLogin_Saml2_Response(settings, xml)
281281
self.assertFalse(response.is_valid(self.get_request_data()))
282-
self.assertEquals('The Assertion must include a Conditions element', response.get_error())
282+
self.assertEqual('The Assertion must include a Conditions element', response.get_error())
283283

284284
xml_2 = self.file_contents(join(self.data_path, 'responses', 'valid_response.xml.base64'))
285285
response_2 = OneLogin_Saml2_Response(settings, xml_2)
@@ -298,7 +298,7 @@ def testCheckOneAuthnStatement(self):
298298
settings.set_strict(True)
299299
response = OneLogin_Saml2_Response(settings, xml)
300300
self.assertFalse(response.is_valid(self.get_request_data()))
301-
self.assertEquals('The Assertion must include an AuthnStatement element', response.get_error())
301+
self.assertEqual('The Assertion must include an AuthnStatement element', response.get_error())
302302

303303
xml_2 = self.file_contents(join(self.data_path, 'responses', 'valid_response.xml.base64'))
304304
response_2 = OneLogin_Saml2_Response(settings, xml_2)
@@ -724,7 +724,7 @@ def testIsInValidDestination(self):
724724
message_3 = self.file_contents(join(self.data_path, 'responses', 'invalids', 'empty_destination.xml.base64'))
725725
response_4 = OneLogin_Saml2_Response(settings, message_3)
726726
self.assertFalse(response_4.is_valid(self.get_request_data()))
727-
self.assertEquals('The response has an empty Destination value', response_4.get_error())
727+
self.assertEqual('The response has an empty Destination value', response_4.get_error())
728728

729729
# No Destination
730730
dom.firstChild.removeAttribute('Destination')

0 commit comments

Comments
 (0)