diff options
Diffstat (limited to 'tests/integration/client_test.py')
-rw-r--r-- | tests/integration/client_test.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/integration/client_test.py b/tests/integration/client_test.py new file mode 100644 index 0000000..dfced9b --- /dev/null +++ b/tests/integration/client_test.py @@ -0,0 +1,20 @@ +import unittest + +import docker + + +class ClientTest(unittest.TestCase): + + def test_info(self): + client = docker.from_env() + info = client.info() + assert 'ID' in info + assert 'Name' in info + + def test_ping(self): + client = docker.from_env() + assert client.ping() is True + + def test_version(self): + client = docker.from_env() + assert 'Version' in client.version() |