summaryrefslogtreecommitdiff
path: root/patchtracker/tests.py
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2010-05-04 23:21:33 +0200
committerSean Finney <seanius@debian.org>2010-05-05 23:32:11 +0200
commit74cef20527c5381b4aa16976f9a15df470a195cd (patch)
tree925dc92e2524b671253276f4c9b071171931b1b8 /patchtracker/tests.py
parent84c6348811a8e9cbb9496269d7af601c92cc485b (diff)
downloadpatch-tracker-74cef20527c5381b4aa16976f9a15df470a195cd.tar.gz
Initial django import, including models and admin models for current schema.
Diffstat (limited to 'patchtracker/tests.py')
-rw-r--r--patchtracker/tests.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/patchtracker/tests.py b/patchtracker/tests.py
new file mode 100644
index 0000000..2247054
--- /dev/null
+++ b/patchtracker/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
+"""}
+