diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-07-27 13:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 13:11:16 +0200 |
commit | 357928b0cdfd89e8a7cce8c776bb5eb16a8c4401 (patch) | |
tree | c8ad6cd0378298f7fe7d8570088c3c5c6951f7eb /test | |
parent | 874d0aa25367274c46f6b8ba2a91def66503407e (diff) | |
parent | 7e5f424c5013a591e71f570b003e34f8e6788869 (diff) | |
download | mitmproxy-357928b0cdfd89e8a7cce8c776bb5eb16a8c4401.tar.gz mitmproxy-357928b0cdfd89e8a7cce8c776bb5eb16a8c4401.tar.bz2 mitmproxy-357928b0cdfd89e8a7cce8c776bb5eb16a8c4401.zip |
Merge pull request #2460 from MatthewShao/mitmweb-options
Add default value suggester in mitmweb options
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/tools/web/test_app.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mitmproxy/tools/web/test_app.py b/test/mitmproxy/tools/web/test_app.py index bb439b34..4d290284 100644 --- a/test/mitmproxy/tools/web/test_app.py +++ b/test/mitmproxy/tools/web/test_app.py @@ -263,6 +263,9 @@ class TestApp(tornado.testing.AsyncHTTPTestCase): assert self.put_json("/options", {"wtf": True}).code == 400 assert self.put_json("/options", {"anticache": "foo"}).code == 400 + def test_option_save(self): + assert self.fetch("/options/save", method="POST").code == 200 + def test_err(self): with mock.patch("mitmproxy.tools.web.app.IndexHandler.get") as f: f.side_effect = RuntimeError @@ -279,7 +282,6 @@ class TestApp(tornado.testing.AsyncHTTPTestCase): r2 = yield ws_client.read_message() j1 = _json.loads(r1) j2 = _json.loads(r2) - print(j1) response = dict() response[j1['resource']] = j1 response[j2['resource']] = j2 |