diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-30 12:03:13 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-30 12:03:13 +1200 |
commit | 4ed5043c67848bf717e48bc509d959422c8faeb6 (patch) | |
tree | 92abe731c72d34bf6b43cbe1ecb46939953a6860 /test/test_pathod.py | |
parent | 904760c6c2927caf49b7cbe4027dd1c8dd8e9fdb (diff) | |
download | mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.tar.gz mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.tar.bz2 mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.zip |
Add coding style check, reformat.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index bfff3274..7f07c041 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -53,6 +53,7 @@ class TestNotAfterConnect(tutils.DaemonTests): ssloptions = dict( not_after_connect = True ) + def test_connect(self): r = self.pathoc( r"get:'http://foo.com/p/202':da", @@ -66,6 +67,7 @@ class TestCustomCert(tutils.DaemonTests): ssloptions = dict( certs = [("*", tutils.test_data.path("data/testkey.pem"))], ) + def test_connect(self): r = self.pathoc(r"get:/p/202") assert r.status_code == 202 @@ -78,6 +80,7 @@ class TestSSLCN(tutils.DaemonTests): ssloptions = dict( cn = "foo.com" ) + def test_connect(self): r = self.pathoc(r"get:/p/202") assert r.status_code == 202 @@ -87,6 +90,7 @@ class TestSSLCN(tutils.DaemonTests): class TestNohang(tutils.DaemonTests): nohang = True + def test_nohang(self): r = self.get("200:p0,0") assert r.status_code == 800 @@ -96,6 +100,7 @@ class TestNohang(tutils.DaemonTests): class TestHexdump(tutils.DaemonTests): hexdump = True + def test_hexdump(self): r = self.get(r"200:b'\xf0'") @@ -194,6 +199,7 @@ class CommonTests(tutils.DaemonTests): class TestDaemon(CommonTests): ssl = False + def test_connect(self): r = self.pathoc( r"get:'http://foo.com/p/202':da", |