Added full path parse_host unit test

This commit is contained in:
Joffrey F 2015-08-17 14:42:19 -07:00
parent 570693c810
commit adb2d01861
1 changed files with 4 additions and 1 deletions

View File

@ -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: