diff options
author | Wookey <wookey@wookware.org> | 2011-07-10 23:30:36 +0100 |
---|---|---|
committer | Wookey <wookey@wookware.org> | 2011-07-10 23:30:36 +0100 |
commit | 1e1d63c768fb7791f278c164ded138e95fd787e5 (patch) | |
tree | 63c7e3d9693802991c6c278a7461fd577445dc8e /flatpages/tests.py | |
parent | ca6e50b8abc07c22d90d5626ade1a0a1c52d09bf (diff) | |
parent | f318105a9bed2792fa3cab017bb6a2d5c8204284 (diff) | |
download | troggle-1e1d63c768fb7791f278c164ded138e95fd787e5.tar.gz troggle-1e1d63c768fb7791f278c164ded138e95fd787e5.tar.bz2 troggle-1e1d63c768fb7791f278c164ded138e95fd787e5.zip |
merge fix from martin's tip.
Diffstat (limited to 'flatpages/tests.py')
-rw-r--r-- | flatpages/tests.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/flatpages/tests.py b/flatpages/tests.py new file mode 100644 index 0000000..2247054 --- /dev/null +++ b/flatpages/tests.py @@ -0,0 +1,23 @@ +""" +This file demonstrates two different styles of tests (one doctest and one +unittest). These will both pass when you run "manage.py test". + +Replace these with more appropriate tests for your application. +""" + +from django.test import TestCase + +class SimpleTest(TestCase): + def test_basic_addition(self): + """ + Tests that 1 + 1 always equals 2. + """ + self.failUnlessEqual(1 + 1, 2) + +__test__ = {"doctest": """ +Another way to test that 1 + 1 is equal to 2. + +>>> 1 + 1 == 2 +True +"""} + |