[Zope3-checkins] SVN: Zope3/trunk/src/zope/traversing/browser/tests.py Add missing cleanup code to zope.traversing unit tests.

Marius Gedminas marius at pov.lt
Sat Jan 20 08:12:50 EST 2007


Log message for revision 72138:
  Add missing cleanup code to zope.traversing unit tests.
  
  

Changed:
  U   Zope3/trunk/src/zope/traversing/browser/tests.py

-=-
Modified: Zope3/trunk/src/zope/traversing/browser/tests.py
===================================================================
--- Zope3/trunk/src/zope/traversing/browser/tests.py	2007-01-20 13:12:17 UTC (rev 72137)
+++ Zope3/trunk/src/zope/traversing/browser/tests.py	2007-01-20 13:12:48 UTC (rev 72138)
@@ -29,7 +29,9 @@
 from zope.publisher.http import IHTTPRequest, HTTPCharsets
 
 from zope.app.container.contained import contained
+from zope.app.testing import setup
 
+
 class IRoot(Interface):
     pass
 
@@ -42,6 +44,7 @@
 class TestAbsoluteURL(TestCase):
 
     def setUp(self):
+        setup.placelessSetUp()
         from zope.traversing.browser import AbsoluteURL, SiteAbsoluteURL
         browserView(None, 'absolute_url', AbsoluteURL)
         browserView(IRoot, 'absolute_url', SiteAbsoluteURL)
@@ -50,6 +53,9 @@
         zope.component.provideAdapter(HTTPCharsets, (IHTTPRequest,),
                                       IUserPreferredCharsets)
 
+    def tearDown(self):
+        setup.placelessTearDown()
+
     def test_interface(self):
         request = TestRequest()
         content = contained(TrivialContent(), Root(), name='a')



More information about the Zope3-Checkins mailing list