How to test views of a Django application?
Django's builtin test client is not suitable for unit testing! It performs system tests: it handles your views as a black box in a project's environment.
This article provides a recipe for developers to replace Django's builtin test client by smaller, fine-grained …