diff --git a/Auth/tests.py b/Auth/tests.py index 90e006a..d661eb5 100644 --- a/Auth/tests.py +++ b/Auth/tests.py @@ -74,8 +74,7 @@ def test_post_signup_failure(self): 'password1': 'testpassword', 'password2': 'testpassword2' }) - self.assertEqual(response.status_code, 302) - self.assertRedirects(response, reverse('Auth:signup')) - messages_list = list(messages.get_messages(response.wsgi_request)) - self.assertEqual(len(messages_list), 1) - self.assertEqual(str(messages_list[0]), 'Please check your inputs') \ No newline at end of file + self.assertEqual(response.status_code, 400) + self.assertTemplateUsed(response, 'Auth/signup.html') + self.assertIsInstance(response.context['form'], SignupForm) + \ No newline at end of file