[Zope3-checkins] CVS: Zope3/src/persistent/tests - persistent.txt:1.3 persistenttestbase.py:1.2

Jim Fulton jim at zope.com
Fri Mar 5 17:10:32 EST 2004


Update of /cvs-repository/Zope3/src/persistent/tests
In directory cvs.zope.org:/tmp/cvs-serv15449/src/persistent/tests

Modified Files:
	persistent.txt persistenttestbase.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/persistent/tests/persistent.txt 1.2 => 1.3 ===
--- Zope3/src/persistent/tests/persistent.txt:1.2	Wed Mar  3 13:59:42 2004
+++ Zope3/src/persistent/tests/persistent.txt	Fri Mar  5 17:08:50 2004
@@ -440,9 +440,9 @@
 ...     pass
 ... else:
 ...     from persistent.interfaces import IPersistent
-...     assert IPersistent.isImplementedByInstancesOf(Persistent)
+...     assert IPersistent.implementedBy(Persistent)
 ...     p = Persistent()
-...     assert IPersistent.isImplementedBy(p)
-...     assert IPersistent.isImplementedByInstancesOf(P)
+...     assert IPersistent.providedBy(p)
+...     assert IPersistent.implementedBy(P)
 ...     p = P()
-...     assert IPersistent.isImplementedBy(p)
+...     assert IPersistent.providedBy(p)


=== Zope3/src/persistent/tests/persistenttestbase.py 1.1 => 1.2 ===
--- Zope3/src/persistent/tests/persistenttestbase.py:1.1	Wed Mar  3 07:18:49 2004
+++ Zope3/src/persistent/tests/persistenttestbase.py	Fri Mar  5 17:08:50 2004
@@ -185,16 +185,16 @@
 
     if interfaces:
         def testInterface(self):
-            self.assert_(IPersistent.isImplementedByInstancesOf(Persistent),
+            self.assert_(IPersistent.implementedBy(Persistent),
                          "%s does not implement IPersistent" % Persistent)
             p = Persistent()
-            self.assert_(IPersistent.isImplementedBy(p),
+            self.assert_(IPersistent.providedBy(p),
                          "%s does not implement IPersistent" % p)
 
-            self.assert_(IPersistent.isImplementedByInstancesOf(P),
+            self.assert_(IPersistent.implementedBy(P),
                          "%s does not implement IPersistent" % P)
             p = self.klass()
-            self.assert_(IPersistent.isImplementedBy(p),
+            self.assert_(IPersistent.providedBy(p),
                          "%s does not implement IPersistent" % p)
 
     def testDataManagerAndAttributes(self):




More information about the Zope3-Checkins mailing list