aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_pathoc.py4
-rw-r--r--test/tutils.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index c22fd4f8..ca25be58 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -65,6 +65,10 @@ class TestDaemon:
assert "Invalid headers" in v
assert "HTTP/" in v
+ def test_explain(self):
+ reqs = [ "get:/p/200:b@100" ]
+ assert not "b@100" in self.tval(reqs, explain=True)
+
def test_showreq(self):
reqs = [ "get:/api/info:p0,0", "get:/api/info:p0,0" ]
assert self.tval(reqs, showreq=True).count("unprintables escaped") == 2
diff --git a/test/tutils.py b/test/tutils.py
index a63ed7eb..3de18417 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -23,7 +23,8 @@ class DaemonTests:
timeout = self.timeout,
hexdump = self.hexdump,
logreq = True,
- logresp = True
+ logresp = True,
+ explain = True
)
@classmethod