def checkExpectedInterfaces(objects, expectedInterface):
    """Verifies that all the objects implement the expected interface"""
    for obj in objects:
        if not expectedInterface.providedBy(obj):
            raise RuntimeError('Object %s does not implement %s interface' %
                (obj, expectedInterface))
