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

Method test_worker_init

tests/test_gtornado.py:72–75  ·  view source on GitHub ↗

Test worker initialization.

(self)

Source from the content-addressed store, hash-verified

70 return worker
71
72 def test_worker_init(self):
73 """Test worker initialization."""
74 worker = self.create_worker()
75 assert worker.nr == 0
76
77 def test_init_process_clears_ioloop(self):
78 """Test that init_process clears the current IOLoop."""

Callers

nothing calls this directly

Calls 1

create_workerMethod · 0.95

Tested by

no test coverage detected