From 3b2ad38748a3bfefb5cd67c7d024e70f34beb29f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 10 Nov 2009 05:17:22 +0000 Subject: More usage of setup and teardown. --- docs/tutorials/bfgwiki/src/basiclayout/tutorial/tests.py | 6 ++++++ docs/tutorials/bfgwiki/src/models/tutorial/tests.py | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'docs/tutorials/bfgwiki') diff --git a/docs/tutorials/bfgwiki/src/basiclayout/tutorial/tests.py b/docs/tutorials/bfgwiki/src/basiclayout/tutorial/tests.py index f8c0ceb20..849e75ad4 100644 --- a/docs/tutorials/bfgwiki/src/basiclayout/tutorial/tests.py +++ b/docs/tutorials/bfgwiki/src/basiclayout/tutorial/tests.py @@ -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 tutorial.views import my_view context = testing.DummyModel() diff --git a/docs/tutorials/bfgwiki/src/models/tutorial/tests.py b/docs/tutorials/bfgwiki/src/models/tutorial/tests.py index 1b540a60c..1c1faf855 100644 --- a/docs/tutorials/bfgwiki/src/models/tutorial/tests.py +++ b/docs/tutorials/bfgwiki/src/models/tutorial/tests.py @@ -48,6 +48,12 @@ class AppmakerTests(unittest.TestCase): self.failUnless(root['app_root'] is app_root) class ViewTests(unittest.TestCase): + def setUp(self): + testing.setUp() + + def tearDown(self): + testing.tearDown() + def test_my_view(self): from tutorial.views import my_view context = testing.DummyModel() -- cgit v1.2.3