willkg/richard — pull request #42 by alejandrogomez (2012-03-20 18:32:00+00:00)
Title: [issue #34] Test for all the views in the site

I wrote tests for `pages`, `sitenews` and `videos` app's views and the `home` view. I also added a template for 404 HTTP errors in `richard/templates`.

For each view I tested that a 200 HTTP code was returned and that it was rendered with the correct template. I also tested 404 HTTP errors where they can happen.

I putted `ViewTestCase` and `with_save` decorators in `richard/tests/utils.py` and made it a module.

I think that I've tested all the views. Let me know if something is missing or incorrect.