Mercurial > public > bravenewsurf
annotate bns_website/news/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 | 2de51cc51d3a |
children | 66a3cafc4548 |
rev | line source |
---|---|
bob@14 | 1 """ |
bob@14 | 2 This file demonstrates writing tests using the unittest module. These will pass |
bob@14 | 3 when you run "manage.py test". |
bob@14 | 4 |
bob@14 | 5 Replace this with more appropriate tests for your application. |
bob@14 | 6 """ |
bob@14 | 7 |
bob@14 | 8 from django.test import TestCase |
bob@14 | 9 |
bob@14 | 10 |
bob@14 | 11 class SimpleTest(TestCase): |
bob@14 | 12 def test_basic_addition(self): |
bob@14 | 13 """ |
bob@14 | 14 Tests that 1 + 1 always equals 2. |
bob@14 | 15 """ |
bob@14 | 16 self.assertEqual(1 + 1, 2) |