def require_docker_version(minimum_docker_version, message):
    minimum_docker_version = LooseVersion(
        minimum_docker_version
    )

    # XXX: Can we change this to use skipIf?
    def decorator(wrapped):
        @wraps(wrapped)
        def wrapper(*args, **kwargs):
            client = DockerClient()
            docker_version = LooseVersion(
                client._client.version()['Version']
            )
            if docker_version < minimum_docker_version:
                raise SkipTest(
                    'Minimum required Docker version: {}. '
                    'Actual Docker version: {}. '
                    'Details: {}'.format(
                        minimum_docker_version,
                        docker_version,
                        message,
                    )
                )
            return wrapped(*args, **kwargs)
        return wrapper
    return decorator
Register a publisher on the specified topic.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/testtools.py/require_docker_version--crossover with--dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/publishers.py/PublisherManager.register