summaryrefslogtreecommitdiff
path: root/tests/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test.py')
-rw-r--r--tests/test.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test.py b/tests/test.py
index c9a1b05..38cbc2f 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -102,6 +102,17 @@ class DockerClientTest(Cleanup, unittest.TestCase):
def tearDown(self):
self.client.close()
+ def test_ctor(self):
+ try:
+ docker.Client(version=1.12)
+ except Exception as e:
+ self.assertTrue(isinstance(e, docker.errors.DockerException))
+ if not six.PY3:
+ self.assertEqual(
+ e.message,
+ 'version parameter must be a string. Found float'
+ )
+
#########################
# INFORMATION TESTS #
#########################