Commit d0a3b98b authored by Michal Čihař's avatar Michal Čihař

Test form rendering as well

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent dbb57ad3
......@@ -172,6 +172,10 @@ class RegistrationTest(TestCase, RegistrationTestMixin):
'''
User.objects.create_user('testuser', 'test@example.com', 'x')
response = self.client.get(
reverse('password_reset'),
)
self.assertContains(response, 'Reset my password')
response = self.client.post(
reverse('password_reset'),
{
......@@ -493,6 +497,10 @@ class ViewTest(TestCase):
reverse('password')
)
self.assertContains(response, 'This field is required.')
response = self.client.get(
reverse('password'),
)
self.assertContains(response, 'Current password')
# Change with wrong password
response = self.client.post(
reverse('password'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment