[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful/tests -
test_instance.py:1.13
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:56 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful/tests
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/workflow/stateful/tests
Modified Files:
test_instance.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/workflow/stateful/tests/test_instance.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/workflow/stateful/tests/test_instance.py:1.12 Wed Mar 3 15:20:35 2004
+++ Zope3/src/zope/app/workflow/stateful/tests/test_instance.py Fri Mar 5 17:09:24 2004
@@ -115,18 +115,18 @@
pi = self.pi
data = pi.data
- self.assert_(ITestDataSchema.isImplementedBy(data))
+ self.assert_(ITestDataSchema.providedBy(data))
self.assertEqual(data.text, 'no text')
self.assertEqual(data.value, 1)
data.text = 'another text'
- self.assert_(IBeforeRelevantDataChangeEvent.isImplementedBy(events[0]))
- self.assert_(IAfterRelevantDataChangeEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeRelevantDataChangeEvent.providedBy(events[0]))
+ self.assert_(IAfterRelevantDataChangeEvent.providedBy(events[-1]))
clearEvents()
data.value = 10
- self.assert_(IBeforeRelevantDataChangeEvent.isImplementedBy(events[0]))
- self.assert_(IAfterRelevantDataChangeEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeRelevantDataChangeEvent.providedBy(events[0]))
+ self.assert_(IAfterRelevantDataChangeEvent.providedBy(events[-1]))
self.assertEqual(data.text, 'another text')
self.assertEqual(data.value, 10)
@@ -140,44 +140,44 @@
clearEvents()
pi.fireTransition('show')
- self.assert_(IBeforeTransitionEvent.isImplementedBy(events[0]))
- self.assert_(IAfterTransitionEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeTransitionEvent.providedBy(events[0]))
+ self.assert_(IAfterTransitionEvent.providedBy(events[-1]))
self.assertEqual(pi.status, 'private')
self.assertEqual(sort(pi.getOutgoingTransitions()),
['publish_direct', 'submit_pending'])
clearEvents()
pi.fireTransition('submit_pending')
- self.assert_(IBeforeTransitionEvent.isImplementedBy(events[0]))
- self.assert_(IAfterTransitionEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeTransitionEvent.providedBy(events[0]))
+ self.assert_(IAfterTransitionEvent.providedBy(events[-1]))
self.assertEqual(pi.status, 'pending')
self.assertEqual(sort(pi.getOutgoingTransitions()),
['publish_pending', 'retract_pending'])
clearEvents()
pi.fireTransition('publish_pending')
- self.assert_(IBeforeTransitionEvent.isImplementedBy(events[0]))
- self.assert_(IAfterTransitionEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeTransitionEvent.providedBy(events[0]))
+ self.assert_(IAfterTransitionEvent.providedBy(events[-1]))
self.assertEqual(pi.status, 'published')
self.assertEqual(sort(pi.getOutgoingTransitions()),
['retract_published'])
clearEvents()
pi.fireTransition('retract_published')
- self.assert_(IBeforeTransitionEvent.isImplementedBy(events[0]))
- self.assert_(IAfterTransitionEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeTransitionEvent.providedBy(events[0]))
+ self.assert_(IAfterTransitionEvent.providedBy(events[-1]))
self.assertEqual(pi.status, 'private')
clearEvents()
pi.fireTransition('submit_pending')
- self.assert_(IBeforeTransitionEvent.isImplementedBy(events[0]))
- self.assert_(IAfterTransitionEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeTransitionEvent.providedBy(events[0]))
+ self.assert_(IAfterTransitionEvent.providedBy(events[-1]))
self.assertEqual(pi.status, 'pending')
clearEvents()
pi.fireTransition('retract_pending')
- self.assert_(IBeforeTransitionEvent.isImplementedBy(events[0]))
- self.assert_(IAfterTransitionEvent.isImplementedBy(events[-1]))
+ self.assert_(IBeforeTransitionEvent.providedBy(events[0]))
+ self.assert_(IAfterTransitionEvent.providedBy(events[-1]))
self.assertEqual(pi.status, 'private')
More information about the Zope3-Checkins
mailing list