dimanche 25 janvier 2015

testing if a link directs to a correct page in django

i am working with the django framework and i'm having trouble with testing the project.


i want to test whether a link redirects to the proper page or not.


i have a link in a page that redirect to another web page -


how can i test if - when the user is clicking the link he gets redirected to the correct page?


for example: lets say i have: redirect me


i want to know that when the user is clicking on "redirect me" he gets sent to "second_link.html"


Aucun commentaire:

Enregistrer un commentaire