Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Test whether an interface is implemented by the specification

src/c/o/collective.simplemanagement-HEAD/src/collective/simplemanagement/timeline.py   collective.simplemanagement(Download)
def subscriber(object_, event):
    if not IObjectMovedEvent.providedBy(event):
        snapshot(object_)
 
 

src/c/o/collective.simplemanagement-HEAD/src/collective/simplemanagement/subscribers.py   collective.simplemanagement(Download)
def timeline_update(object_, event):
    iterations = []
    if not IIteration.providedBy(object_):
        if IObjectMovedEvent.providedBy(event):
            for parent in [event.oldParent, event.newParent]:

src/p/r/Products.Reflecto-3.0.5/Products/Reflecto/tests/testDirectory.py   Products.Reflecto(Download)
        self.assertTrue(IObjectWillBeMovedEvent.providedBy(events[1]))
 
        self.assertTrue(IObjectMovedEvent.providedBy(events[2]))
        self.assertEqual(events[2].oldName, 'foo')
        self.assertEqual(events[2].newName, 'bar')
        self.assertEqual(events[0].newParent, self.reflecto['subdir'])
 
        self.assertTrue(IObjectMovedEvent.providedBy(events[1]))
        self.assertEqual(events[1].object.getId(), 'foo')