diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-01-05 15:25:09 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-01-05 15:25:09 +1300 |
commit | 3886ccae9379d065e54e0eb7e961992ff3c0ee62 (patch) | |
tree | 33db7b5c057f508ce02aebac562e58fecfe7ddf2 /test | |
parent | d7f641c6ee1033232110c9b42c3b48cc5b719520 (diff) | |
download | mitmproxy-3886ccae9379d065e54e0eb7e961992ff3c0ee62.tar.gz mitmproxy-3886ccae9379d065e54e0eb7e961992ff3c0ee62.tar.bz2 mitmproxy-3886ccae9379d065e54e0eb7e961992ff3c0ee62.zip |
Provisional proxy mode support for pathod.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_test.py | 1 | ||||
-rw-r--r-- | test/test_utils.py | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/test_test.py b/test/test_test.py index fc97d263..89889ba1 100644 --- a/test/test_test.py +++ b/test/test_test.py @@ -25,6 +25,7 @@ class TestDaemonManual: ssloptions = dict( keyfile = utils.data.path("resources/server.key"), certfile = utils.data.path("resources/server.crt"), + ssl_after_connect = False ) d = test.Daemon(ssl=ssloptions) rsp = requests.get("https://localhost:%s/p/202:da"%d.port, verify=False) diff --git a/test/test_utils.py b/test/test_utils.py index 0a48d87d..b8aa7f12 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -1,6 +1,16 @@ from libpathod import utils import tutils + +def test_membool(): + m = utils.MemBool() + assert not m.v + assert m(1) + assert m.v == 1 + assert m(2) + assert m.v == 2 + + def test_parse_size(): assert utils.parse_size("100") == 100 assert utils.parse_size("100k") == 100 * 1024 |