Example #1
0
 def test_wrong_email(self):
     f = ResetPasswordForm()
     f.cleaned_data= {'email': "*****@*****.**"}
     try:
         f.clean_email()
     except forms.ValidationError, err:
         eq_(err.messages, (
             ["No user exists with that email.  Please ask [email protected] "
              "to add you to the volunteer tracker."]))