diff options
author | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 13:19:37 -0700 |
---|---|---|
committer | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 13:19:37 -0700 |
commit | 35fb123b995cbbe27d3edd5ed14abc6e56b7ad13 (patch) | |
tree | a8d061c933f9e65601e6290c10abd090b79fae26 /test/test_poolmanager.py | |
parent | 5f949ee35667a6065ab02a3e7ab8c98c9fcdcaed (diff) | |
download | python-urllib3-35fb123b995cbbe27d3edd5ed14abc6e56b7ad13.tar python-urllib3-35fb123b995cbbe27d3edd5ed14abc6e56b7ad13.tar.gz |
Imported Upstream version 1.8.2
Diffstat (limited to 'test/test_poolmanager.py')
-rw-r--r-- | test/test_poolmanager.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_poolmanager.py b/test/test_poolmanager.py index 2faab94..759b5e3 100644 --- a/test/test_poolmanager.py +++ b/test/test_poolmanager.py @@ -2,7 +2,10 @@ import unittest from urllib3.poolmanager import PoolManager from urllib3 import connection_from_url -from urllib3.exceptions import ClosedPoolError +from urllib3.exceptions import ( + ClosedPoolError, + LocationParseError, +) class TestPoolManager(unittest.TestCase): @@ -63,6 +66,9 @@ class TestPoolManager(unittest.TestCase): self.assertEqual(len(p.pools), 0) + def test_nohost(self): + p = PoolManager(5) + self.assertRaises(LocationParseError, p.connection_from_url, 'http://@') if __name__ == '__main__': |