@@ -191,7 +191,7 @@ def test_badrequest_400_error(self, mocked_session, mocked_badrequest_400_error)
191191 expected_error_message = "HTTP-error-code: 400, Error: A validation exception has occurred."
192192
193193 # Verifying the message formed for the custom exception
194- self .assertEquals (str (e ), expected_error_message )
194+ self .assertEqual (str (e ), expected_error_message )
195195 pass
196196
197197
@@ -210,7 +210,7 @@ def test_unauthorized_401_error(self, mocked_session, mocked_unauthorized_401_er
210210 expected_error_message = "HTTP-error-code: 401, Error: Invalid authorization credentials."
211211
212212 # Verifying the message formed for the custom exception
213- self .assertEquals (str (e ), expected_error_message )
213+ self .assertEqual (str (e ), expected_error_message )
214214 pass
215215
216216
@@ -229,7 +229,7 @@ def test_forbidden_403_exception(self, mocked_session, mocked_forbidden_403_exce
229229 expected_error_message = "HTTP-error-code: 403, Error: User doesn't have permission to access the resource."
230230
231231 # Verifying the message formed for the custom exception
232- self .assertEquals (str (e ), expected_error_message )
232+ self .assertEqual (str (e ), expected_error_message )
233233 pass
234234
235235
@@ -248,7 +248,7 @@ def test_notfound_404_error(self, mocked_session, mocked_notfound_404_error):
248248 expected_error_message = "HTTP-error-code: 404, Error: The resource you have specified cannot be found."
249249
250250 # Verifying the message formed for the custom exception
251- self .assertEquals (str (e ), expected_error_message )
251+ self .assertEqual (str (e ), expected_error_message )
252252 pass
253253
254254 @mock .patch ('requests.Request' , side_effect = mocked_precondition_failed_412_error )
@@ -266,7 +266,7 @@ def test_precondition_failed_412_error(self, mocked_session, mocked_precondition
266266 expected_error_message = "HTTP-error-code: 412, Error: One or more conditions given in the request header fields were invalid."
267267
268268 # Verifying the message formed for the custom exception
269- self .assertEquals (str (e ), expected_error_message )
269+ self .assertEqual (str (e ), expected_error_message )
270270 pass
271271
272272 @mock .patch ('requests.Request' , side_effect = mocked_internalservererror_500_error )
@@ -284,7 +284,7 @@ def test_internalservererror_500_error(self, mocked_session, mocked_internalserv
284284 expected_error_message = "HTTP-error-code: 500, Error: An unhandled error with the Xero API. Contact the Xero API team if problems persist."
285285
286286 # Verifying the message formed for the custom exception
287- self .assertEquals (str (e ), expected_error_message )
287+ self .assertEqual (str (e ), expected_error_message )
288288 pass
289289
290290
@@ -303,7 +303,7 @@ def test_notimplemented_501_error(self, mocked_session, mocked_notimplemented_50
303303 expected_error_message = "HTTP-error-code: 501, Error: The method you have called has not been implemented."
304304
305305 # Verifying the message formed for the custom exception
306- self .assertEquals (str (e ), expected_error_message )
306+ self .assertEqual (str (e ), expected_error_message )
307307 pass
308308
309309 @mock .patch ('requests.Request' , side_effect = mocked_not_available_503_error )
@@ -321,7 +321,7 @@ def test_not_available_503_error(self, mocked_session, mocked_not_available_503_
321321 expected_error_message = "HTTP-error-code: 503, Error: API service is currently unavailable."
322322
323323 # Verifying the message formed for the custom exception
324- self .assertEquals (str (e ), expected_error_message )
324+ self .assertEqual (str (e ), expected_error_message )
325325 pass
326326
327327
@@ -341,7 +341,7 @@ def test_too_many_requests_429_in_day_error(self, mocked_session, mocked_failed_
341341 expected_error_message = "HTTP-error-code: 429, Error: The API rate limit for your organisation/application pairing has been exceeded. Please retry after 1000 seconds"
342342
343343 # Verifying the message formed for the custom exception
344- self .assertEquals (str (e ), expected_error_message )
344+ self .assertEqual (str (e ), expected_error_message )
345345 pass
346346
347347
@@ -361,7 +361,7 @@ def test_too_many_requests_429_in_minute_error(self, mocked_session, mocked_fail
361361 expected_error_message = "HTTP-error-code: 429, Error: The API rate limit for your organisation/application pairing has been exceeded. Please retry after 5 seconds"
362362
363363 # Verifying the message formed for the custom exception
364- self .assertEquals (str (e ), expected_error_message )
364+ self .assertEqual (str (e ), expected_error_message )
365365 pass
366366
367367
0 commit comments