aboutsummaryrefslogtreecommitdiffstats
path: root/library/recipes/docker_compose/example_with_context/test.py
blob: b7f13fb1050dc12e09aea1fa01625ef3853d8bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
import urllib.request


def test_compose_works():
    # import pdb; pdb.set_trace()

    request = urllib.request.urlopen("http://localhost:5000")
    response = request.read().decode(request.headers.get_content_charset())
    assert 'Hello World!' in response