summaryrefslogtreecommitdiff
path: root/repoze/bfg/paster_templates/zodb
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-10 05:10:34 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-10 05:10:34 +0000
commitc634e0349051bcb4cebe9203613c4bb9c0d89acd (patch)
tree239e8ab3be241e5a9e551c2e493fb33ca400ec30 /repoze/bfg/paster_templates/zodb
parentc1bc021263d4ae2299851b809d5c4d0e48399f61 (diff)
downloadpyramid-c634e0349051bcb4cebe9203613c4bb9c0d89acd.tar.gz
pyramid-c634e0349051bcb4cebe9203613c4bb9c0d89acd.tar.bz2
pyramid-c634e0349051bcb4cebe9203613c4bb9c0d89acd.zip
Add superflous (but hopefully viral) setUp and tearDown methods that call testing.setUp and testing.tearDown.
Diffstat (limited to 'repoze/bfg/paster_templates/zodb')
-rw-r--r--repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl b/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl
index 3de012eda..54cbe2f6e 100644
--- a/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl
+++ b/repoze/bfg/paster_templates/zodb/+package+/tests.py_tmpl
@@ -3,6 +3,12 @@ import unittest
from repoze.bfg import testing
class ViewTests(unittest.TestCase):
+ def setUp(self):
+ testing.setUp()
+
+ def tearDown(self):
+ testing.tearDown()
+
def test_my_view(self):
from {{package}}.views import my_view
context = testing.DummyModel()