summaryrefslogtreecommitdiff
path: root/ishtar/materials/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-12-02 17:41:31 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-12-24 17:38:01 +0100
commit6710679433a803ff4b157efe7ef37539fae72a79 (patch)
tree285bb00f6a5f325bb8c7ed1baadd287e04ab2d3c /ishtar/materials/tests.py
downloadIshtar-6710679433a803ff4b157efe7ef37539fae72a79.tar.bz2
Ishtar-6710679433a803ff4b157efe7ef37539fae72a79.zip
Initial commit
Diffstat (limited to 'ishtar/materials/tests.py')
-rw-r--r--ishtar/materials/tests.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/ishtar/materials/tests.py b/ishtar/materials/tests.py
new file mode 100644
index 000000000..2247054b3
--- /dev/null
+++ b/ishtar/materials/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
+"""}
+