def test_etag_if_none_match_get_true():
    """A GET request with a matching If-None-Match returns 304."""
    app = wsgiservice.get_app(globals())
    req = Request.blank('/res4?id=myid', {'HTTP_IF_NONE_MATCH': '"myid_xml"'})
    res = app._handle_request(req)
    print res
    assert res.body == ''
    assert res._headers['ETag'] == '"myid_xml"'
    assert res.status == '304 Not Modified'
    assert 'Content-Type' not in res.headers
dataset/ETHPy150Open pneff/wsgiservice/tests/test_application.py/test_etag_if_none_match_get_true/original