summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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