diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 23:16:06 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 23:16:06 +1200 |
commit | 1662d6d5724cb39080bfad98dd515ea66e157c25 (patch) | |
tree | d1d29ab84b5167e470a9adc1b66790f7c261aceb /test/test_http.py | |
parent | 7d01d5c7970c2b1b86bc6c98be5dfcaa145b1d53 (diff) | |
download | mitmproxy-1662d6d5724cb39080bfad98dd515ea66e157c25.tar.gz mitmproxy-1662d6d5724cb39080bfad98dd515ea66e157c25.tar.bz2 mitmproxy-1662d6d5724cb39080bfad98dd515ea66e157c25.zip |
Repair test suite.
Diffstat (limited to 'test/test_http.py')
-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(): |