I googled to find the assert methods list. But it seems like this documentation is very well hidden. Does anyone know where it is?
SimpleTestCase is the simplest one. It provides the basic features of unittest. TestCase plus some Django extras. It blocks database access by default, because it doesn't do anything to isolate changes you would make there. You should use it for testing components that don't need the database.
The test client. The test client is a Python class that acts as a dummy web browser, allowing you to test your views and interact with your Django-powered application programmatically.
self. client , is the built-in Django test client. This isn't a real browser, and doesn't even make real requests. It just constructs a Django HttpRequest object and passes it through the request/response process - middleware, URL resolver, view, template - and returns whatever Django produces.
It just uses the standard python unittest, http://docs.python.org/library/unittest.html#assert-methods, extended with Django-specific asserts which can be found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With