diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-16 11:12:58 +1300 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-16 20:26:06 +1300 |
| commit | fb69c9c3453142ae6beb4040295accb41fdc6878 (patch) | |
| tree | 91e4b36a9bdeeb801e1bfca6707f86bb4257f7a5 /test | |
| parent | 61040a7bcd46c057e34fe4671ef20b9111649e74 (diff) | |
| download | mitmproxy-fb69c9c3453142ae6beb4040295accb41fdc6878.tar.gz mitmproxy-fb69c9c3453142ae6beb4040295accb41fdc6878.tar.bz2 mitmproxy-fb69c9c3453142ae6beb4040295accb41fdc6878.zip | |
docs: overview, classes, arguments
Diffstat (limited to 'test')
| -rw-r--r-- | test/mitmproxy/test_examples.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/mitmproxy/test_examples.py b/test/mitmproxy/test_examples.py index 1ba7ba7a..483cb228 100644 --- a/test/mitmproxy/test_examples.py +++ b/test/mitmproxy/test_examples.py @@ -87,11 +87,8 @@ class TestScripts(mastertest.MasterTest): m.request(f) assert f.request.query["mitmproxy"] == "rocks" - def test_modify_response_body(self): - with tutils.raises(ScriptError): - tscript("modify_response_body.py") - - m, sc = tscript("modify_response_body.py", "mitmproxy rocks") + def test_arguments(self): + m, sc = tscript("arguments.py", "mitmproxy rocks") f = tutils.tflow(resp=netutils.tresp(content=b"I <3 mitmproxy")) m.response(f) assert f.response.content == b"I <3 rocks" |
