[Zope3-checkins] CVS: Zope3/src/zope/app/component/tests -
test_contentdirective.py:1.13 test_directives.py:1.23
Suresh Babu Eddala
sbabu at zeomega.com
Fri Mar 5 10:53:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/component/tests
In directory cvs.zope.org:/tmp/cvs-serv11541/src/zope/app/component/tests
Modified Files:
test_contentdirective.py test_directives.py
Log Message:
removed local interface service stuff, it uses global utility service.
=== Zope3/src/zope/app/component/tests/test_contentdirective.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/component/tests/test_contentdirective.py:1.12 Wed Feb 25 18:02:23 2004
+++ Zope3/src/zope/app/component/tests/test_contentdirective.py Fri Mar 5 10:53:50 2004
@@ -29,7 +29,7 @@
from zope.app.security.exceptions import UndefinedPermissionError
from zope.component import getService
from zope.app.services.servicenames import Factories
-from zope.app.component.globalinterfaceservice import queryInterface
+from zope.app.component.interface import queryInterface
# explicitly import ExampleClass and IExample using full paths
# so that they are the same objects as resolve will get.
@@ -66,7 +66,7 @@
def testImplements(self):
- self.assertEqual(queryInterface(
+ self.assertEqual(queryInterface(
"zope.app.component.tests.exampleclass.IExample"), None)
f = configfile("""
@@ -77,7 +77,7 @@
xmlconfig(f)
self.failUnless(IExample.isImplementedByInstancesOf(ExampleClass))
- self.assertEqual(queryInterface(
+ self.assertEqual(queryInterface(
"zope.app.component.tests.exampleclass.IExample"), IExample)
=== Zope3/src/zope/app/component/tests/test_directives.py 1.22 => 1.23 ===
--- Zope3/src/zope/app/component/tests/test_directives.py:1.22 Tue Mar 2 13:16:11 2004
+++ Zope3/src/zope/app/component/tests/test_directives.py Fri Mar 5 10:53:50 2004
@@ -72,12 +72,14 @@
>>> interface(context, I, IContentType)
>>> context
((None,
- <function handler>,
- ('Interfaces',
- 'provideInterface',
- '',
- <InterfaceClass zope.app.component.tests.test_directives.I>)),)
- >>> IContentType.isImplementedBy(I)
+ <function provideInterface>,
+ ('',
+ <InterfaceClass zope.app.component.tests.test_directives.I>,
+ <InterfaceClass zope.app.content.interfaces.IContentType>)),)
+ >>> from zope.interface.interfaces import IInterface
+ >>> IContentType.extends(IInterface)
+ True
+ >>> IInterface.isImplementedBy(I)
True
"""
More information about the Zope3-Checkins
mailing list