MCPcopy
hub / github.com/benoitc/gunicorn / test_init_attributes

Method test_init_attributes

tests/ctl/test_client.py:25–32  ·  view source on GitHub ↗

Test that client is initialized with correct attributes.

(self)

Source from the content-addressed store, hash-verified

23 """Tests for ControlClient initialization."""
24
25 def test_init_attributes(self):
26 """Test that client is initialized with correct attributes."""
27 client = ControlClient("/tmp/test.sock", timeout=60.0)
28
29 assert client.socket_path == "/tmp/test.sock"
30 assert client.timeout == 60.0
31 assert client._sock is None
32 assert client._request_id == 0
33
34
35class TestControlClientConnect:

Callers

nothing calls this directly

Calls 1

ControlClientClass · 0.90

Tested by

no test coverage detected