def container_running(client, container, duration=2):

    time.sleep(duration)
    config = client.inspect_container(container)
    return config['State']['Running']
Predicate to check if a container continues to run after `duration` secs.
dataset/ETHPy150Open d11wtq/dockerpty/tests/util.py/container_running