3
# This file is part of gunicorn released under the MIT license.
4
# See the NOTICE for more information.
11
dirname = os.path.dirname(__file__)
12
reqdir = os.path.join(dirname, "requests", "invalid")
14
def test_http_parser():
15
for fname in glob.glob(os.path.join(reqdir, "*.http")):
16
expect = treq.load_py(os.path.splitext(fname)[0] + ".py")
17
req = treq.badrequest(fname, expect)