[Django]-Writing Django Unit Tests for Views

6👍

✅

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

Getting started with testing in Django

1👍

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

Leave a comment