diff options
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r-- | test/test_proxy.py | 7 |
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): |