]> git.phdru.name Git - cookiecutter.git/blobdiff - project_template/tests/__init__.py
Update: makefiles, sphinx docs, tests
[cookiecutter.git] / project_template / tests / __init__.py
diff --git a/project_template/tests/__init__.py b/project_template/tests/__init__.py
new file mode 100644 (file)
index 0000000..3c09ede
--- /dev/null
@@ -0,0 +1,22 @@
+
+import unittest
+
+__all__ = ['TestCase', 'main']
+
+
+class TestCase(unittest.TestCase):
+    def setUp(self):
+        pass
+
+    def tearDown(self):
+        pass
+
+
+def main():
+    try:
+        unittest.main(testRunner=unittest.TextTestRunner())
+    except SystemExit, msg:
+        result = msg.args[0]
+    else:
+        result = 0
+    raise SystemExit(result)