aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-02-03 12:16:03 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-02-03 12:16:03 +1300
commitd8cb826361c2487ba7feb0c09669d6518d51c987 (patch)
treeb29764b4d9c664f52a3c8b62724f05fa752b5342 /test/test_proxy.py
parentdb99da6af560f80bc169979f6d8681de3879acf2 (diff)
downloadmitmproxy-d8cb826361c2487ba7feb0c09669d6518d51c987.tar.gz
mitmproxy-d8cb826361c2487ba7feb0c09669d6518d51c987.tar.bz2
mitmproxy-d8cb826361c2487ba7feb0c09669d6518d51c987.zip
Test suite rejiggering and cleanup.
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index ea1c56aa..ff9ec4bb 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -1,7 +1,7 @@
import threading, urllib, Queue, urllib2, cStringIO
import libpry
import serv, sslserv
-from libmproxy import proxy, controller, utils
+from libmproxy import proxy, controller, utils, dump, script
import random
# Yes, the random ports are horrible. During development, sockets are often not
@@ -196,6 +196,9 @@ class u_parse_url(libpry.AutoTree):
s, h, po, pa = proxy.parse_url("http://foo")
assert pa == "/"
+ s, h, po, pa = proxy.parse_url("https://foo")
+ assert po == 443
+
class uConfig(libpry.AutoTree):
def test_pem(self):
@@ -210,6 +213,8 @@ class uFileLike(libpry.AutoTree):
s.flush()
assert s.readline() == "foobar\n"
assert s.readline() == "foobar"
+ # Test __getattr__
+ assert s.isatty
class uRequest(libpry.AutoTree):