[Zope3-checkins] CVS: Zope3/src/zope/schema/tests -
test_accessors.py:1.5 test_tabcomplete.py:1.6
test_vocabulary.py:1.13
Jim Fulton
jim at zope.com
Fri Mar 5 17:10:03 EST 2004
Update of /cvs-repository/Zope3/src/zope/schema/tests
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/schema/tests
Modified Files:
test_accessors.py test_tabcomplete.py test_vocabulary.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/schema/tests/test_accessors.py 1.4 => 1.5 ===
--- Zope3/src/zope/schema/tests/test_accessors.py:1.4 Tue Jan 20 14:45:08 2004
+++ Zope3/src/zope/schema/tests/test_accessors.py Fri Mar 5 17:09:31 2004
@@ -62,10 +62,10 @@
for attr in ('title', 'description', 'readonly'):
self.assertEqual(getattr(I['getFoo'], attr), getattr(field, attr))
- self.assert_(IText.isImplementedBy(I['getFoo']))
+ self.assert_(IText.providedBy(I['getFoo']))
- self.assert_(IMethod.isImplementedBy(I['getFoo']))
- self.assert_(IMethod.isImplementedBy(I['setFoo']))
+ self.assert_(IMethod.providedBy(I['getFoo']))
+ self.assert_(IMethod.providedBy(I['setFoo']))
self.assertEqual(I['setFoo'].field, field)
self.assertEqual(I['setFoo'].__name__, 'setFoo')
=== Zope3/src/zope/schema/tests/test_tabcomplete.py 1.5 => 1.6 ===
--- Zope3/src/zope/schema/tests/test_tabcomplete.py:1.5 Wed Jun 18 15:44:32 2003
+++ Zope3/src/zope/schema/tests/test_tabcomplete.py Fri Mar 5 17:09:32 2004
@@ -40,11 +40,11 @@
def test_query_interface(self):
query = self.vocab.getQuery()
- self.assert_(IVocabularyQuery.isImplementedBy(query))
+ self.assert_(IVocabularyQuery.providedBy(query))
def test_getTerm(self):
term = self.vocab.getTerm("abc")
- self.assert_(ITerm.isImplementedBy(term))
+ self.assert_(ITerm.providedBy(term))
self.assertEqual(term.value, "abc")
=== Zope3/src/zope/schema/tests/test_vocabulary.py 1.12 => 1.13 ===
--- Zope3/src/zope/schema/tests/test_vocabulary.py:1.12 Wed Jan 28 18:07:43 2004
+++ Zope3/src/zope/schema/tests/test_vocabulary.py Fri Mar 5 17:09:32 2004
@@ -53,7 +53,7 @@
def test_getVocabularyRegistry(self):
r = vocabulary.getVocabularyRegistry()
- self.assert_(interfaces.IVocabularyRegistry.isImplementedBy(r))
+ self.assert_(interfaces.IVocabularyRegistry.providedBy(r))
# XXX still need to test the default implementation
@@ -245,7 +245,7 @@
class IStupid(Interface):
pass
v = vocabulary.SimpleVocabulary.fromValues([1, 2, 3], IStupid)
- self.failUnless(IStupid.isImplementedBy(v))
+ self.failUnless(IStupid.providedBy(v))
def test_len(self):
self.assertEqual(len(self.list_vocab), 3)
More information about the Zope3-Checkins
mailing list