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

Function test_statsd_fail

tests/test_statsd.py:54–63  ·  view source on GitHub ↗

UDP socket fails

()

Source from the content-addressed store, hash-verified

52
53
54def test_statsd_fail():
55 "UDP socket fails"
56 logger = Statsd(Config())
57 logger.sock = MockSocket(True)
58 logger.info("No impact on logging")
59 logger.debug("No impact on logging")
60 logger.critical("No impact on logging")
61 logger.error("No impact on logging")
62 logger.warning("No impact on logging")
63 logger.exception("No impact on logging")
64
65
66def test_statsd_host_initialization():

Callers

nothing calls this directly

Calls 9

infoMethod · 0.95
debugMethod · 0.95
criticalMethod · 0.95
errorMethod · 0.95
warningMethod · 0.95
exceptionMethod · 0.95
StatsdClass · 0.90
ConfigClass · 0.90
MockSocketClass · 0.70

Tested by

no test coverage detected