summaryrefslogtreecommitdiff
path: root/recipe/tests.py
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2013-04-20 10:56:32 -0400
committerMike Crute <mcrute@gmail.com>2013-04-20 11:00:35 -0400
commit3aa22ec4cd4e8c80a6b3269d86a00912542462dd (patch)
tree10d3f7a05538bf9e7605c7d1677887f0fbedbf1b /recipe/tests.py
parentc5f8644eb1f542a7a6e118955a69d843fd61a24e (diff)
downloadgreenbox-3aa22ec4cd4e8c80a6b3269d86a00912542462dd.tar.bz2
greenbox-3aa22ec4cd4e8c80a6b3269d86a00912542462dd.tar.xz
greenbox-3aa22ec4cd4e8c80a6b3269d86a00912542462dd.zip
Move recipe to the top level
Diffstat (limited to 'recipe/tests.py')
-rw-r--r--recipe/tests.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/recipe/tests.py b/recipe/tests.py
new file mode 100644
index 0000000..2247054
--- /dev/null
+++ b/recipe/tests.py
@@ -0,0 +1,23 @@
1"""
2This file demonstrates two different styles of tests (one doctest and one
3unittest). These will both pass when you run "manage.py test".
4
5Replace these with more appropriate tests for your application.
6"""
7
8from django.test import TestCase
9
10class SimpleTest(TestCase):
11 def test_basic_addition(self):
12 """
13 Tests that 1 + 1 always equals 2.
14 """
15 self.failUnlessEqual(1 + 1, 2)
16
17__test__ = {"doctest": """
18Another way to test that 1 + 1 is equal to 2.
19
20>>> 1 + 1 == 2
21True
22"""}
23