[Zope-Checkins] CVS: Zope/lib/python/Interface/tests - testVerify.py:1.3.24.1

Andreas Jung andreas@andreas-jung.com
Sat, 16 Nov 2002 11:41:13 -0500


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

Modified Files:
      Tag: ajung-restructuredtext-integration-branch
	testVerify.py 
Log Message:
merge from trunk

=== Zope/lib/python/Interface/tests/testVerify.py 1.3 => 1.3.24.1 ===
--- Zope/lib/python/Interface/tests/testVerify.py:1.3	Wed Aug 14 17:35:33 2002
+++ Zope/lib/python/Interface/tests/testVerify.py	Sat Nov 16 11:40:43 2002
@@ -55,6 +55,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):