Exemplo n.º 1
0
def test_cache_control():
    res = app.get('/')
    assert 'public' in res.headers['Cache-Control']
    assert 'max-age=3600' in res.headers['Cache-Control']
    assert 'no-cache="Cookies"' in res.headers['Cache-Control']
Exemplo n.º 2
0
def test_cache_control():
    res = app.get('/')
    assert res.headers['Cache-Control'] == 'max-age=3600, public, no-cache="Cookies"'
Exemplo n.º 3
0
def test_hello_world():
    res = app.get('/')
    assert res.status_int == 200
    assert res.body == 'Hello, world!'.encode('utf-8')
Exemplo n.º 4
0
def test_hello_world():
    res = app.get('/')
    assert res.status_int == 200
    assert res.body == 'Hello, world!'