annotate bns_website/reviews/tests.py @ 28:20dc7be59c85

Addresses three items from #2, comment #2. 1. Made review title a mandatory field 3. Changed reviews display to use Bootstrap <blockquote> instead of <cite> 4. Ordering of reviews is now reverse chronological see ticket #2
author Chris Ridgway <ckridgway@gmail.com>
date Thu, 03 Nov 2011 23:00:34 -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)