diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-21 20:20:37 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-21 20:20:37 +1200 |
commit | 86fe199988801232f209b7e39a2910065bf5db5f (patch) | |
tree | a4ef1fd23686b1404f8a3f3352a3b647aac52451 /test/test_pathoc.py | |
parent | 059a2329035b916c8762b58a385556266abb4629 (diff) | |
download | mitmproxy-86fe199988801232f209b7e39a2910065bf5db5f.tar.gz mitmproxy-86fe199988801232f209b7e39a2910065bf5db5f.tar.bz2 mitmproxy-86fe199988801232f209b7e39a2910065bf5db5f.zip |
pathoc: add a flag to dump request information.
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index a9c38870..310d75f6 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -28,11 +28,11 @@ class TestDaemon: c = pathoc.Pathoc("127.0.0.1", self.d.port) c.connect() s = cStringIO.StringIO() - c.print_requests(requests, verbose, s) + c.print_requests(requests, verbose, True, s) return s.getvalue() def test_print_requests(self): - reqs = [ "get:/api/info", "get:/api/info" ] + reqs = [ "get:/api/info:p0,0", "get:/api/info:p0,0" ] assert self.tval(reqs, False).count("200") == 2 assert self.tval(reqs, True).count("Date") == 2 |