Commits

sirex  committed 9871b72

Fixed failed unit tests.

  • Participants
  • Parent commits d36a382

Comments (0)

Files changed (1)

File registration/tests/views.py

 from django.core import mail
 from django.core.urlresolvers import reverse
 from django.test import TestCase
+from django.utils.translation import ugettext as _
 
 from registration import forms
 from registration.models import RegistrationProfile
         self.assertEqual(response.status_code, 200)
         self.failIf(response.context['form'].is_valid())
         self.assertFormError(response, 'form', field=None,
-                             errors=u"The two password fields didn't match.")
+                             errors=_(u"The two password fields didn't match."))
         self.assertEqual(len(mail.outbox), 0)
 
     def test_registration_view_closed(self):