summaryrefslogtreecommitdiff
path: root/tests/integration/client_test.py
blob: 20e8cd55e761604d4703eae6f432f560eaa49944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import unittest

import docker

from .base import TEST_API_VERSION


class ClientTest(unittest.TestCase):

    def test_info(self):
        client = docker.from_env(version=TEST_API_VERSION)
        info = client.info()
        assert 'ID' in info
        assert 'Name' in info

    def test_ping(self):
        client = docker.from_env(version=TEST_API_VERSION)
        assert client.ping() is True

    def test_version(self):
        client = docker.from_env(version=TEST_API_VERSION)
        assert 'Version' in client.version()