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

Function test_prefix_nested

tests/test_statsd.py:154–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153
154def test_prefix_nested():
155 c = Config()
156 c.set("statsd_prefix", "test.asdf.")
157 logger = Statsd(c)
158 logger.sock = MockSocket(False)
159
160 logger.info("Blah", extra={"mtype": "gauge", "metric": "gunicorn.test", "value": 666})
161 assert logger.sock.msgs[0] == b"test.asdf.gunicorn.test:666|g"

Callers

nothing calls this directly

Calls 5

setMethod · 0.95
infoMethod · 0.95
ConfigClass · 0.90
StatsdClass · 0.90
MockSocketClass · 0.70

Tested by

no test coverage detected