(self)
| 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' |
nothing calls this directly
no test coverage detected