From 1662d6d5724cb39080bfad98dd515ea66e157c25 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 24 Jun 2012 23:16:06 +1200 Subject: Repair test suite. --- test/test_http.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/test_http.py') 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(): -- cgit v1.2.3