[Zope-Checkins] CVS: Zope/lib/python/Interface/tests - testVerify.py:1.4
Martijn Pieters
mj@zope.com
Mon, 11 Nov 2002 14:53:16 -0500
Update of /cvs-repository/Zope/lib/python/Interface/tests
In directory cvs.zope.org:/tmp/cvs-serv12372/lib/python/Interface/tests
Modified Files:
testVerify.py
Log Message:
Backport Interface Verify bugfix from Zope 3.
=== Zope/lib/python/Interface/tests/testVerify.py 1.3 => 1.4 ===
--- Zope/lib/python/Interface/tests/testVerify.py:1.3 Wed Aug 14 17:35:33 2002
+++ Zope/lib/python/Interface/tests/testVerify.py Mon Nov 11 14:53:16 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):