Did I find the right examples for you? yes no

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

src/l/o/lovely.mail-0.3.1/src/lovely/mail/testing.py   lovely.mail(Download)
    mailer.smtp = TestMailerConnection
    delivery = component.getUtility(IMailDelivery, deliveryName)
    if IQueuedMailDelivery.providedBy(delivery):
        oldQueuePath = delivery._queuePath
        delivery._queuePath = os.path.join(tempfile.mkdtemp(), 'mail')
def tearDownSMTPTesting():
    global oldSMTP, oldQueuePath, mailer, delivery, thread
    mailer.smtp = oldSMTP
    if IQueuedMailDelivery.providedBy(delivery):
        delivery._queuePath = oldQueuePath