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

Method test_help

tests/ctl/test_handlers.py:455–468  ·  view source on GitHub ↗

Test help command.

(self)

Source from the content-addressed store, hash-verified

453 """Tests for help command."""
454
455 def test_help(self):
456 """Test help command."""
457 arbiter = MockArbiter()
458 handlers = CommandHandlers(arbiter)
459
460 result = handlers.help()
461
462 assert "commands" in result
463 commands = result["commands"]
464 assert "show all" in commands
465 assert "show workers" in commands
466 assert "worker add [N]" in commands
467 assert "reload" in commands
468 assert "shutdown [graceful|quick]" in commands

Callers

nothing calls this directly

Calls 3

helpMethod · 0.95
CommandHandlersClass · 0.90
MockArbiterClass · 0.70

Tested by

no test coverage detected