Hi,

i was playing around with unittests and found the
failUnlessRaises(excClass, callableObj) Method.
If i understand it right the Method catches Exceptions
that are thrown by django.

I tried to send a post to a register form with:
res = Client().post('/register/', {data}) which
works so far.

Now i want to catch an Error, in this special case
the error that is thrown if i forget a field,
f.e. the password field.
So i want to catch the "forgot-password-field-error".

Now my question is, where can i find the exceptions
i can catch? Meaning where are they described?


Greetings
Sven


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to