Django Test Patterns
July 26, 2010
This post contains some patterns to use when using Django's built in test framework to test a web app.
Testing a Page Fetch
Here's an example of simple successful page fetch
c = Client() response = c.get('/') self.assertEquals(response.status_code …