Fixed base_url related tests

This commit is contained in:
Joffrey F 2014-07-03 04:16:08 +02:00
parent cf050d28a0
commit d33ba883f1
1 changed files with 4 additions and 4 deletions

View File

@ -746,14 +746,14 @@ class DockerClientTest(unittest.TestCase):
assert c.base_url == "http+unix://socket"
def test_url_compatibility_http(self):
c = docker.Client(base_url="http://hostname")
c = docker.Client(base_url="http://hostname:1234")
assert c.base_url == "http://hostname"
assert c.base_url == "http://hostname:1234"
def test_url_compatibility_tcp(self):
c = docker.Client(base_url="tcp://hostname")
c = docker.Client(base_url="tcp://hostname:1234")
assert c.base_url == "http://hostname"
assert c.base_url == "http://hostname:1234"
def test_logs(self):
try: