Writing and running tests
Writing and running tests
See also
The testing tutorial, the testing tools reference, and the advanced testing topics.
This document is split into two primary sections. First, we explain how to write tests with Django. Then, we explain how to run them.
Writing tests
Django’s unit tests use a Python standard library module: 登录查看完整内容