summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-11-23 15:15:58 -0800
committerJoffrey F <joffrey@docker.com>2016-11-28 15:28:04 -0800
commitf5ac10c469fca252e69ae780749f4ec6fe369789 (patch)
treeedd59b15fb03c7ce68187fbd8a41dd00f0d19537 /tests
parentc66c7f8b0a8ca216e21c9fe1903eb79f4406a93e (diff)
downloaddocker-py-docker_client.tar.gz
Rename Client -> DockerClientdocker_client
Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/client_test.py4
-rw-r--r--tests/unit/fake_api_client.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/client_test.py b/tests/unit/client_test.py
index 0a56b04..aff6973 100644
--- a/tests/unit/client_test.py
+++ b/tests/unit/client_test.py
@@ -50,13 +50,13 @@ class ClientTest(unittest.TestCase):
with self.assertRaises(AttributeError) as cm:
client.create_container()
s = str(cm.exception)
- assert "'Client' object has no attribute 'create_container'" in s
+ assert "'DockerClient' object has no attribute 'create_container'" in s
assert "this method is now on the object APIClient" in s
with self.assertRaises(AttributeError) as cm:
client.abcdef()
s = str(cm.exception)
- assert "'Client' object has no attribute 'abcdef'" in s
+ assert "'DockerClient' object has no attribute 'abcdef'" in s
assert "this method is now on the object APIClient" not in s
diff --git a/tests/unit/fake_api_client.py b/tests/unit/fake_api_client.py
index 84e1d9d..47890ac 100644
--- a/tests/unit/fake_api_client.py
+++ b/tests/unit/fake_api_client.py
@@ -56,6 +56,6 @@ def make_fake_client():
"""
Returns a Client with a fake APIClient.
"""
- client = docker.Client()
+ client = docker.DockerClient()
client.api = make_fake_api_client()
return client