# Path: chopsticks/facts.py
# def python_version(short=False):
#     """Get the Python version."""
#     if short:
#         return list(sys.version_info[:2])
#     return list(sys.version_info)


import sys
from chopsticks.facts import python_version
    from chopsticks.tunnel import Docker
    from chopsticks.group import Group
"""Exercise the chopsticks Docker connectivity."""


if __name__ == '__main__':
    group = Group([
        Docker('worker-1', image='python:3.4'),
        Docker('worker-2', image='python:3.5'),
        Docker('worker-3', image='python:3.6'),
    ])

    for host, python_version in group.call(python_version).items():

# Path: chopsticks/facts.py
# def python_version(short=False):
#     """Get the Python version."""
#     if short:
#         return list(sys.version_info[:2])
#     return list(sys.version_info)


# Path: test_chopsticks_docker.py
import sys
from chopsticks.facts import python_version
    from chopsticks.tunnel import Docker
    from chopsticks.group import Group

"""Exercise the chopsticks Docker connectivity."""


if __name__ == '__main__':
    group = Group([
        Docker('worker-1', image='python:3.4'),
        Docker('worker-2', image='python:3.5'),
        Docker('worker-3', image='python:3.6'),
    ])

    for host, python_version in group.call(python_version).items():

        print('%s Python version:' % host, python_version)