[Zope3-checkins] CVS: Zope3/lib/python/Interface/tests - testVerify.py:1.4

Jim Fulton jim@zope.com
Mon, 11 Nov 2002 13:23:49 -0500


Update of /cvs-repository/Zope3/lib/python/Interface/tests
In directory cvs.zope.org:/tmp/cvs-serv1147/tests

Modified Files:
	testVerify.py 
Log Message:
Fixe bug in Verify: base interfaces were not checked

=== Zope3/lib/python/Interface/tests/testVerify.py 1.3 => 1.4 ===
--- Zope3/lib/python/Interface/tests/testVerify.py:1.3	Mon Jun 10 19:27:42 2002
+++ Zope3/lib/python/Interface/tests/testVerify.py	Mon Nov 11 13:23:49 2002
@@ -54,6 +54,25 @@
 
         verifyClass(I, C)
 
+    def testMissingAttr_with_Extended_Interface(self):
+
+        class II(Interface):
+            def f():
+                pass
+
+        class I(II):
+            pass
+
+        class C: 
+
+            __implements__=I
+
+        self.assertRaises(BrokenImplementation, verifyClass, I, C)
+
+        C.f=lambda self: None
+
+        verifyClass(I, C)
+
     def testWrongArgs(self):
 
         class I(Interface):