diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2016-05-19 19:27:12 -0600 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2016-05-19 19:27:12 -0600 |
| commit | 9aae43c31a4075cf33f11de00b24dceaea66d4d0 (patch) | |
| tree | de666a1a507e7ad08c8cd2d1a82d218b970a5105 /tests | |
| parent | f52c136402110393fe2a054ebd04234fc24c77f1 (diff) | |
| download | webob-9aae43c31a4075cf33f11de00b24dceaea66d4d0.tar.gz | |
Add failing test for #250
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_response.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_response.py b/tests/test_response.py index 093084f..58fee3c 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -505,6 +505,13 @@ def test_file_with_http_version(): assert res.status_code == 200 assert res.status == '200 OK' +def test_file_with_http_version_more_status(): + inp = io.BytesIO(b'HTTP/1.1 404 Not Found\r\n\r\nSome data...') + + res = Response.from_file(inp) + assert res.status_code == 404 + assert res.status == '404 Not Found' + def test_set_status(): res = Response() res.status = "200" |
