Writing Django Unit Tests for Views [duplicate]
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.
Alex Gaynor wrote some tips about this very subject just the other day:
Getting started with testing in Django
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
精彩评论