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

Jim Fulton jim@zope.com
Sat, 3 May 2003 12:33:23 -0400


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

Modified Files:
	test_interface.py 
Log Message:
Added a check to make sure that the interface declaration
surviced patching. This shouldn't be necessary but reflects a 
weird patching bug that did occur.



=== Zope3/src/zope/app/services/tests/test_interface.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/services/tests/test_interface.py:1.5	Tue Feb 25 16:49:24 2003
+++ Zope3/src/zope/app/services/tests/test_interface.py	Sat May  3 12:33:22 2003
@@ -63,6 +63,10 @@
         self.registry.newModule("imodule", code)
         get_transaction().commit()
         imodule = self.registry.findModule("imodule")
+
+        # test for a pickling bug
+        self.assertEqual(imodule.Foo.__implements__, imodule.IFoo)
+        
         self.assert_(imodule.IFoo.isImplementedBy(imodule.aFoo))
         # the conversion should not affect Interface
         self.assert_(imodule.Interface is Interface)