diff --git a/tests/test_sparkpost_integration.py b/tests/test_sparkpost_integration.py index f9737c2..bdf8a8f 100644 --- a/tests/test_sparkpost_integration.py +++ b/tests/test_sparkpost_integration.py @@ -129,4 +129,4 @@ class SparkPostBackendIntegrationTests(AnymailTestMixin, SimpleTestCase): err = cm.exception self.assertEqual(err.status_code, 401) # Make sure the exception message includes SparkPost's response: - self.assertIn("Forbidden", str(err)) + self.assertIn("Unauthorized", str(err))