On the local server that I start up, if the user does not have the required 
permission for a particular view, they will be redirected to the 403 page 
(I am using the permission_required decorator)

However, in the selenium test, the PermissionDenied exception is thrown and 
the user is redirected to the internal server error page (500) instead.

Does the server not work the same way when in selenium testing environment? 
Should I catch that exception in order to check permission is denied 
instead of checking for the 403 page? Cheers!
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dccd8e33-8f30-4aef-a030-644112efaf13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to