summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2015-08-17 14:42:19 -0700
committerJoffrey F <joffrey@docker.com>2015-08-17 14:45:35 -0700
commitadb2d01861c7a902ffaa53f1067c45a8b9a7d45d (patch)
tree67fefe0383048145d00ca8e7364c159d469b73ab
parent570693c81023316430db79c1cc7f75cfd2284844 (diff)
downloaddocker-py-allow-path-in-host.tar.gz
Added full path parse_host unit testallow-path-in-host
-rw-r--r--tests/utils_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/utils_test.py b/tests/utils_test.py
index 8acd47d..5327e13 100644
--- a/tests/utils_test.py
+++ b/tests/utils_test.py
@@ -72,7 +72,10 @@ class UtilsTest(base.BaseTestCase):
'': 'http+unix://var/run/docker.sock',
None: 'http+unix://var/run/docker.sock',
'unix:///var/run/docker.sock': 'http+unix:///var/run/docker.sock',
- 'unix://': 'http+unix://var/run/docker.sock'
+ 'unix://': 'http+unix://var/run/docker.sock',
+ 'somehost.net:80/service/swarm': (
+ 'http://somehost.net:80/service/swarm'
+ ),
}
for host in invalid_hosts: