From d0ee4d60d09c607a208ae1b190e619a4f106538e Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 5 Jan 2013 19:44:12 -0800 Subject: Unit tests and minor code refactoring for ServerConnection. --- test/tutils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/tutils.py') 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. -- cgit v1.2.3