[Zope3-checkins] CVS: Zope3/src/zope/app/onlinehelp/tests -
test_helpdirectives.py:1.6 test_onlinehelp.py:1.5
Jim Fulton
jim at zope.com
Sun Sep 21 13:32:32 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/onlinehelp/tests
In directory cvs.zope.org:/tmp/cvs-serv14395/src/zope/app/onlinehelp/tests
Modified Files:
test_helpdirectives.py test_onlinehelp.py
Log Message:
Changed to use __setitem__ rather than setObject
No-longer use context wrappers.
=== Zope3/src/zope/app/onlinehelp/tests/test_helpdirectives.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/onlinehelp/tests/test_helpdirectives.py:1.5 Sat Aug 2 07:19:25 2003
+++ Zope3/src/zope/app/onlinehelp/tests/test_helpdirectives.py Sun Sep 21 13:32:31 2003
@@ -17,14 +17,14 @@
"""
import unittest
-from zope.app.interfaces.traversing import \
- ITraverser, ITraversable, IPhysicallyLocatable
+from zope.app.interfaces.traversing import IPhysicallyLocatable
+from zope.app.interfaces.traversing import ITraverser, ITraversable
from zope.app.onlinehelp import tests
from zope.app.onlinehelp import help
-from zope.app.traversing.adapters import \
- Traverser, DefaultTraversable, WrapperPhysicallyLocatable
+from zope.app.location import LocationPhysicallyLocatable
+from zope.app.traversing.adapters import Traverser, DefaultTraversable
from zope.component.adapter import provideAdapter
-from zope.component.tests.placelesssetup import PlacelessSetup
+from zope.app.tests.placelesssetup import PlacelessSetup
from zope.configuration import xmlconfig
from zope.interface import Interface
@@ -39,7 +39,7 @@
PlacelessSetup.setUp(self)
provideAdapter(None, ITraverser, Traverser)
provideAdapter(None, ITraversable, DefaultTraversable)
- provideAdapter(None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
+ provideAdapter(None, IPhysicallyLocatable, LocationPhysicallyLocatable)
def test_register(self):
self.assertEqual(help.keys(), [])
=== Zope3/src/zope/app/onlinehelp/tests/test_onlinehelp.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/onlinehelp/tests/test_onlinehelp.py:1.4 Sat Aug 2 07:19:25 2003
+++ Zope3/src/zope/app/onlinehelp/tests/test_onlinehelp.py Sun Sep 21 13:32:31 2003
@@ -18,15 +18,15 @@
import os
from unittest import TestSuite, makeSuite
from zope.component.adapter import provideAdapter
-from zope.component.tests.placelesssetup import PlacelessSetup
+from zope.app.tests.placelesssetup import PlacelessSetup
from zope.interface import Interface
from zope.interface.verify import verifyObject
from zope.app.onlinehelp import OnlineHelp
from zope.app.interfaces.onlinehelp import IOnlineHelp
-from zope.app.interfaces.traversing import \
- IContainmentRoot, ITraverser, ITraversable, IPhysicallyLocatable
-from zope.app.traversing.adapters import \
- Traverser, DefaultTraversable, WrapperPhysicallyLocatable
+from zope.app.interfaces.traversing import ITraversable, IPhysicallyLocatable
+from zope.app.interfaces.traversing import IContainmentRoot, ITraverser
+from zope.app.location import LocationPhysicallyLocatable
+from zope.app.traversing.adapters import Traverser, DefaultTraversable
from test_onlinehelptopic import TestOnlineHelpTopic, testdir
class I1(Interface):
@@ -38,7 +38,7 @@
PlacelessSetup.setUp(self)
provideAdapter(None, ITraverser, Traverser)
provideAdapter(None, ITraversable, DefaultTraversable)
- provideAdapter(None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
+ provideAdapter(None, IPhysicallyLocatable, LocationPhysicallyLocatable)
path = os.path.join(testdir(), 'help.txt')
self.topic = OnlineHelp('Help', path, 'txt')
More information about the Zope3-Checkins
mailing list