diff --git a/tests/test_sparkpost_integration.py b/tests/test_sparkpost_integration.py index bcba54c..f9737c2 100644 --- a/tests/test_sparkpost_integration.py +++ b/tests/test_sparkpost_integration.py @@ -127,6 +127,6 @@ class SparkPostBackendIntegrationTests(AnymailTestMixin, SimpleTestCase): with self.assertRaises(AnymailAPIError) as cm: self.message.send() err = cm.exception - self.assertEqual(err.status_code, 403) + self.assertEqual(err.status_code, 401) # Make sure the exception message includes SparkPost's response: self.assertIn("Forbidden", str(err))