diff --git a/iam/api/tests.py b/iam/api/tests.py index 397d8743..ce7c1a0e 100644 --- a/iam/api/tests.py +++ b/iam/api/tests.py @@ -2200,7 +2200,7 @@ def test_register_and_resend_code(self): response = c.post('/api/auth-event/%d/resend_auth_code/' % self.aeid, data) self.assertEqual(response.status_code, 400) r = parse_json_response(response) - self.assertEqual(r['error_codename'], 'AUTH_EVENT_NOT_STARTED') + self.assertEqual(r['error_codename'], 'INVALID_REQUEST') # good: self.aeid.census = close but allow_user_resend = True self.ae.auth_method_config['config']['allow_user_resend'] = True