aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_http.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_http.py')
-rw-r--r--test/test_http.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_http.py b/test/test_http.py
index 8b99c769..962eb9cb 100644
--- a/test/test_http.py
+++ b/test/test_http.py
@@ -412,10 +412,10 @@ def test_parse_http_basic_auth():
assert not http.parse_http_basic_auth(v)
-def test_get_line():
+def test_get_request_line():
r = cStringIO.StringIO("\nfoo")
- assert http.get_line(r) == "foo"
- tutils.raises(tcp.NetLibDisconnect, http.get_line, r)
+ assert http.get_request_line(r) == "foo"
+ assert not http.get_request_line(r)
class TestReadRequest():