diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-01-05 19:44:12 -0800 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-01-05 19:44:12 -0800 |
commit | d0ee4d60d09c607a208ae1b190e619a4f106538e (patch) | |
tree | d61b69df2c120f1100e9639072f3b1d8d2231558 /test/tutils.py | |
parent | 060e3198bca48f327984b2d1d73a5d4592866736 (diff) | |
download | mitmproxy-d0ee4d60d09c607a208ae1b190e619a4f106538e.tar.gz mitmproxy-d0ee4d60d09c607a208ae1b190e619a4f106538e.tar.bz2 mitmproxy-d0ee4d60d09c607a208ae1b190e619a4f106538e.zip |
Unit tests and minor code refactoring for ServerConnection.
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tutils.py b/test/tutils.py index 5ce56cb4..9b5ac0f1 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -127,6 +127,11 @@ class HTTPProxTest(ProxTestBase): def get_proxy_config(cls): return dict() + def pathoc(self, connect_to = None): + p = libpathod.pathoc.Pathoc("localhost", self.proxy.port) + p.connect(connect_to) + return p + def pathod(self, spec): """ Constructs a pathod request, with the appropriate base and proxy. |