[Zope-Checkins] CVS: Zope3/lib/python/Interface/tests - testImplements.py:1.1.2.2

Tres Seaver tseaver@zope.com
Wed, 21 Nov 2001 09:01:24 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	testImplements.py 
Log Message:
 - Test missing impl for second interface.

=== Zope3/lib/python/Interface/tests/testImplements.py 1.1.2.1 => 1.1.2.2 ===
 
         self.assertRaises(BrokenImplementation, implements, C, I)
+        self.assertRaises(BrokenImplementation, implements, C, I2)
 
         C.f=lambda self: None
 
         implements(C, I)
 
         self.assertEqual(C.__implements__, (I2, I))
+        self.assertRaises(BrokenImplementation, implements, C, I2)
+
+        C.g=C.f
+        implements(C, I)
+        implements(C, I2)
 
 
 def test_suite():