MCPcopy Create free account
hub / github.com/docker/docker-py / test_info

Method test_info

tests/unit/client_test.py:34–38  ·  view source on GitHub ↗
(self, mock_func)

Source from the content-addressed store, hash-verified

32
33 @mock.patch('docker.api.APIClient.info')
34 def test_info(self, mock_func):
35 mock_func.return_value = fake_api.get_fake_info()[1]
36 client = docker.from_env(version=DEFAULT_DOCKER_API_VERSION)
37 assert client.info() == mock_func.return_value
38 mock_func.assert_called_with()
39
40 @mock.patch('docker.api.APIClient.ping')
41 def test_ping(self, mock_func):

Callers

nothing calls this directly

Calls 2

from_envMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected