MCPcopy Index your code
hub / github.com/docker/docker-py / test_disable_socket_timeout

Method test_disable_socket_timeout

tests/unit/api_test.py:637–643  ·  view source on GitHub ↗

Test that the timeout is disabled on a generic socket object.

(self)

Source from the content-addressed store, hash-verified

635 self.client = APIClient(version=DEFAULT_DOCKER_API_VERSION)
636
637 def test_disable_socket_timeout(self):
638 """Test that the timeout is disabled on a generic socket object."""
639 socket = self.DummySocket()
640
641 self.client._disable_socket_timeout(socket)
642
643 assert socket.timeout is None
644
645 def test_disable_socket_timeout2(self):
646 """Test that the timeouts are disabled on a generic socket object

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected