aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_rparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_rparse.py')
-rw-r--r--test/test_rparse.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/test_rparse.py b/test/test_rparse.py
index 2b8543a2..2a76c3e8 100644
--- a/test/test_rparse.py
+++ b/test/test_rparse.py
@@ -188,7 +188,13 @@ class TestPauses:
assert r.actions[0] == (10, "pause", 10)
-class TestParse:
+class TestParseRequest:
+ def test_simple(self):
+ r = rparse.parse_request({}, "GET")
+ assert r.method == "GET"
+
+
+class TestParseResponse:
def test_parse_err(self):
tutils.raises(rparse.ParseException, rparse.parse_response, {}, "400:msg,b:")
try:
@@ -199,7 +205,7 @@ class TestParse:
def test_parse_header(self):
r = rparse.parse_response({}, '400:h"foo"="bar"')
- assert r.get_header("foo") == "bar"
+ assert utils.get_header("foo", r.headers)
def test_parse_pause_before(self):
r = rparse.parse_response({}, "400:p10,0")