Mercurial > public > bravenewsurf
annotate bns_website/reviews/tests.py @ 23:1357c69e887d
- I added a little New badge for posts in the last 3 days.
- I added a <div class=""> tag to the news posts to group them within the same Bootstrap CSS alert block. I'm not sure if it's a good idea or not, but it's kind of cool.
author | Bob Mourlam <bob.mourlam@gmail.com> |
---|---|
date | Mon, 31 Oct 2011 22:08:45 -0500 |
parents | 71f2beb03789 |
children | 37d9b6b1a097 |
rev | line source |
---|---|
ckridgway@16 | 1 """ |
ckridgway@16 | 2 This file demonstrates writing tests using the unittest module. These will pass |
ckridgway@16 | 3 when you run "manage.py test". |
ckridgway@16 | 4 |
ckridgway@16 | 5 Replace this with more appropriate tests for your application. |
ckridgway@16 | 6 """ |
ckridgway@16 | 7 |
ckridgway@16 | 8 from django.test import TestCase |
ckridgway@16 | 9 |
ckridgway@16 | 10 |
ckridgway@16 | 11 class SimpleTest(TestCase): |
ckridgway@16 | 12 def test_basic_addition(self): |
ckridgway@16 | 13 """ |
ckridgway@16 | 14 Tests that 1 + 1 always equals 2. |
ckridgway@16 | 15 """ |
ckridgway@16 | 16 self.assertEqual(1 + 1, 2) |