[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_interface.py:1.3

Jeremy Hylton jeremy@zope.com
Tue, 28 Jan 2003 14:23:48 -0500


Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv14258/zope/app/services/tests

Modified Files:
	test_interface.py 
Log Message:
Fix patch so that it doesn't touch foreign objects.

If a persistent module imports an object from some other module, it
shouldn't be converted to a persistent object.  Add tests for
functions, classes, and interfaces.


=== Zope3/src/zope/app/services/tests/test_interface.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/tests/test_interface.py:1.2	Fri Jan 24 14:12:20 2003
+++ Zope3/src/zope/app/services/tests/test_interface.py	Tue Jan 28 14:23:45 2003
@@ -19,6 +19,7 @@
 from zodb.storage.mapping import DB
 from zodb.code.module import ManagedRegistry
 
+from zope.interface import Interface
 from zope.app.services.interface import PersistentInterface
 
 code = """\
@@ -60,6 +61,8 @@
         get_transaction().commit()
         imodule = self.registry.findModule("imodule")
         self.assert_(imodule.IFoo.isImplementedBy(imodule.aFoo))
+        # the conversion should not affect Interface
+        self.assert_(imodule.Interface is Interface)
         
 
 def test_suite():