Mercurial > public > sg101
annotate gpp/donations/tests.py @ 153:13d052fbe4f1
Fixing #28, cosmetic issues with member map. Also fixed a bug involving the smiley and markdown interactions. Single quotes were getting HTML REMOVED by markdown.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 19 Dec 2009 19:34:16 +0000 |
parents | c018872385ea |
children | 767cedc7d12a |
rev | line source |
---|---|
bgneal@33 | 1 """ |
bgneal@33 | 2 This file demonstrates two different styles of tests (one doctest and one |
bgneal@33 | 3 unittest). These will both pass when you run "manage.py test". |
bgneal@33 | 4 |
bgneal@33 | 5 Replace these with more appropriate tests for your application. |
bgneal@33 | 6 """ |
bgneal@33 | 7 |
bgneal@33 | 8 from django.test import TestCase |
bgneal@33 | 9 |
bgneal@33 | 10 class SimpleTest(TestCase): |
bgneal@33 | 11 def test_basic_addition(self): |
bgneal@33 | 12 """ |
bgneal@33 | 13 Tests that 1 + 1 always equals 2. |
bgneal@33 | 14 """ |
bgneal@33 | 15 self.failUnlessEqual(1 + 1, 2) |
bgneal@33 | 16 |
bgneal@33 | 17 __test__ = {"doctest": """ |
bgneal@33 | 18 Another way to test that 1 + 1 is equal to 2. |
bgneal@33 | 19 |
bgneal@33 | 20 >>> 1 + 1 == 2 |
bgneal@33 | 21 True |
bgneal@33 | 22 """} |
bgneal@33 | 23 |