aboutsummaryrefslogtreecommitdiff
path: root/test/test_proxymanager.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_proxymanager.py')
-rw-r--r--test/test_proxymanager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_proxymanager.py b/test/test_proxymanager.py
index e7b5c48..7b19334 100644
--- a/test/test_proxymanager.py
+++ b/test/test_proxymanager.py
@@ -38,6 +38,10 @@ class TestProxyManager(unittest.TestCase):
p = ProxyManager('https://something')
self.assertEqual(p.proxy.port, 443)
+ def test_invalid_scheme(self):
+ self.assertRaises(AssertionError, ProxyManager, 'invalid://host/p')
+ self.assertRaises(ValueError, ProxyManager, 'invalid://host/p')
+
if __name__ == '__main__':
unittest.main()