From 3f50930dc06a980ac5dcf012fa23ecc0a70ce1b4 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Wed, 31 Oct 2012 11:23:53 +1300 Subject: Use .freeze to implement the -e explain flags for pathod and pathoc. This now prints (in pathoc) or logs (in pathod) a frozen specification that includes an expanded record of all generated values and locations. --- test/test_pathoc.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_pathoc.py') 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 -- cgit v1.2.3