Question

This question already has an answer here:

Does anyone have a good tute/example of writing good tests for views? Most of the stuff I've been finding was from mid 2008 which is only a little helpful.

Was it helpful?

Solution

Alex Gaynor wrote some tips about this very subject just the other day:

Getting started with testing in Django

OTHER TIPS

I'm not sure if this is exactly what you're looking for, but I've been looking into this same topic and found this example test code very helpful.

http://bitbucket.org/ubernostrum/django-registration/src/tip/registration/tests/views.py

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top