def only_transport(*names):
    def decorator(func):
        def caller(*args, **kwargs):
            if GLOBAL['transport'] in names:
                return func(*args, **kwargs)
            else:
                func_name = '%s:%s' % (func.__module__, func.__name__)
                logger.debug('Running test %s for transport %s is restricted'
                             % (func_name, GLOBAL['transport']))
                return None
        return caller
    return decorator
dataset/ETHPy150Open lorien/grab/test/util.py/only_transport/original