[Checkins] SVN: zope.traversing/trunk/src/zope/traversing/tests/ Move the TraversingLayer into test_vhosting, as that's the only place where it's used. Despite its more general sounding name.

Hanno Schlichting hannosch at hannosch.eu
Tue Dec 15 20:19:20 EST 2009


Log message for revision 106609:
  Move the TraversingLayer into test_vhosting, as that's the only place where it's used. Despite its more general sounding name.
  

Changed:
  D   zope.traversing/trunk/src/zope/traversing/tests/layer.py
  U   zope.traversing/trunk/src/zope/traversing/tests/test_vhosting.py

-=-
Deleted: zope.traversing/trunk/src/zope/traversing/tests/layer.py
===================================================================
--- zope.traversing/trunk/src/zope/traversing/tests/layer.py	2009-12-16 01:16:33 UTC (rev 106608)
+++ zope.traversing/trunk/src/zope/traversing/tests/layer.py	2009-12-16 01:19:20 UTC (rev 106609)
@@ -1,8 +0,0 @@
-import os
-from zope.app.testing import functional
-
-TraversingLayer = functional.ZCMLLayer(
-    os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
-    __name__, 'TraversingLayer', allow_teardown=True)
-
-

Modified: zope.traversing/trunk/src/zope/traversing/tests/test_vhosting.py
===================================================================
--- zope.traversing/trunk/src/zope/traversing/tests/test_vhosting.py	2009-12-16 01:16:33 UTC (rev 106608)
+++ zope.traversing/trunk/src/zope/traversing/tests/test_vhosting.py	2009-12-16 01:19:20 UTC (rev 106609)
@@ -15,6 +15,7 @@
 
 $Id$
 """
+import os
 import unittest
 
 import transaction
@@ -29,11 +30,14 @@
 from zope.site.folder import Folder
 from zope.traversing.api import traverse
 from zope.traversing.testing import browserResource
-from zope.traversing.tests.layer import TraversingLayer
 
 from zope.app.testing import functional
 
+TraversingLayer = functional.ZCMLLayer(
+    os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
+    __name__, 'TraversingLayer', allow_teardown=True)
 
+
 class MyObj(Contained):
     def __getitem__(self, key):
         return traverse(self, '/foo/bar/' + key)



More information about the checkins mailing list