1. Nathaniel Tucker
  2. django-registration


James Bennett  committed 8a3fcdc

A bit more robust testing

  • Participants
  • Parent commits f081dd0
  • Branches default

Comments (0)

Files changed (1)

File registration/tests.py

View file
                                            'password1': 'foo',
                                            'password2': 'bar' })
         self.assertEqual(response.status_code, 200)
+        self.failIf(response.context['form'].is_valid())
+        self.assertFormError(response, 'form', field=None, errors=u'You must type the same password each time')
         self.assertEqual(len(mail.outbox), 1)
         # If registration is closed, trying to register should