Django includes a testing framework built on unittest: TestCase creates an isolated test database, rolls back changes after each test and provides a Client to simulate HTTP requests. You check status codes, content and database effects with it. Tests are run with python manage.py test.
Example
response = self.client.get('/posts/')
self.assertEqual(response.status_code, 200)