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

Method test_call_containers

tests/unit/client_test.py:68–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 assert "this method is now on the object APIClient" not in s
67
68 def test_call_containers(self):
69 client = docker.DockerClient(
70 version=DEFAULT_DOCKER_API_VERSION,
71 **kwargs_from_env())
72
73 with pytest.raises(TypeError) as cm:
74 client.containers()
75
76 s = cm.exconly()
77 assert "'ContainerCollection' object is not callable" in s
78 assert "docker.APIClient" in s
79
80 @pytest.mark.skipif(
81 IS_WINDOWS_PLATFORM, reason='Unix Connection Pool only on Linux'

Callers

nothing calls this directly

Calls 2

containersMethod · 0.95
kwargs_from_envFunction · 0.90

Tested by

no test coverage detected