summaryrefslogtreecommitdiffhomepage
path: root/test/python/factory/wsgi.py
blob: 8ad4887b2359f94edf52774ab887ea049f8ad8da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def wsgi_a(env, start_response):
    start_response("200", [("Content-Length", "1")])
    return [b"1"]


def wsgi_b(env, start_response):
    start_response("200", [("Content-Length", "1")])
    return [b"2"]


def wsgi_a_factory():
    return wsgi_a


def wsgi_b_factory():
    return wsgi_b


wsgi_invalid_callable = None


def wsgi_factory_returning_invalid_callable():
    return wsgi_invalid_callable