diff options
-rw-r--r-- | test/test_http.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_http.py b/test/test_http.py index b7ee6697..206fc4df 100644 --- a/test/test_http.py +++ b/test/test_http.py @@ -218,11 +218,12 @@ def test_read_response(): data = """ HTTP/1.1 200 OK + Content-Length: 3 foo """ - assert tst(data, "GET", None) == ((1, 1), 200, 'OK', odict.ODictCaseless(), 'foo\n') - assert tst(data, "HEAD", None) == ((1, 1), 200, 'OK', odict.ODictCaseless(), '') + assert tst(data, "GET", None)[4] == 'foo' + assert tst(data, "HEAD", None)[4] == '' def test_parse_url(): |