views:

112

answers:

2

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.

A: 

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-backends/src/tip/registration/tests/views.py

Michael Patterson
Thanks! This one I have found to be useful as well http://www.displayofpatience.net/2009/02/test-driving-django-application-development/
Rory Hart
Wow, that link is very helpful as well. Thanks!
Michael Patterson
+4  A: 

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

Getting started with testing in Django

Daniel Roseman
Oooh that is a good start!
Rory Hart