Commits

James Bennett committed 8a3fcdc

A bit more robust testing

  • Participants
  • Parent commits f081dd0

Comments (0)

Files changed (1)

registration/tests.py

                                            '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