This question already has answers here: How do I unit test Django Views? (3 answers) 开发者_运维百科
I\'m adding a set of template tags to a Django application and I\'m not sure how to test them.I\'ve used them in my templates and they seem to be working but I was looking for something more formal.Th
This is a best-practices question. When writing tests in Django, is it better to hard code urls in your tests.py, or to use the dispatch\'s reverse() function to retrieve the correct url?
If I run the following command: >python manage.py test Django looks at tests.py in my application, and runs any doctests or unit tests in that file. It also looks at the __ test __ dictionary fo