diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-10 12:06:33 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-12-10 12:06:33 +0100 |
commit | 3e37cbd061ff97868a434fc0b2c62f5861408a38 (patch) | |
tree | d637479fb6898ab20e150d56b02666ad6d3b925d /test | |
parent | 123ef043dc7214c9818985aeea565a82c2680c0e (diff) | |
download | mitmproxy-3e37cbd061ff97868a434fc0b2c62f5861408a38.tar.gz mitmproxy-3e37cbd061ff97868a434fc0b2c62f5861408a38.tar.bz2 mitmproxy-3e37cbd061ff97868a434fc0b2c62f5861408a38.zip |
minor fixes
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/contentviews/test_api.py | 2 | ||||
-rw-r--r-- | test/mitmproxy/test_examples.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/contentviews/test_api.py b/test/mitmproxy/contentviews/test_api.py index 37bdd40f..8e6c3427 100644 --- a/test/mitmproxy/contentviews/test_api.py +++ b/test/mitmproxy/contentviews/test_api.py @@ -82,4 +82,4 @@ def test_get_message_content_view(): def test_get_by_shortcut(): - assert contentviews.get_by_shortcut("h") + assert contentviews.get_by_shortcut("s") diff --git a/test/mitmproxy/test_examples.py b/test/mitmproxy/test_examples.py index 94637350..8db2507f 100644 --- a/test/mitmproxy/test_examples.py +++ b/test/mitmproxy/test_examples.py @@ -56,7 +56,7 @@ class TestScripts(mastertest.MasterTest): tscript("simple/modify_body_inject_iframe.py") m, sc = tscript("simple/modify_body_inject_iframe.py", "http://example.org/evil_iframe") - f = tflow.tflow(resp=tutils.tresp(content=b"<html>mitmproxy</html>")) + f = tflow.tflow(resp=tutils.tresp(content=b"<html><body>mitmproxy</body></html>")) m.response(f) content = f.response.content assert b'iframe' in content and b'evil_iframe' in content |