()
| 122 | |
| 123 | |
| 124 | def test_prefix(): |
| 125 | c = Config() |
| 126 | c.set("statsd_prefix", "test.") |
| 127 | logger = Statsd(c) |
| 128 | logger.sock = MockSocket(False) |
| 129 | |
| 130 | logger.info("Blah", extra={"mtype": "gauge", "metric": "gunicorn.test", "value": 666}) |
| 131 | assert logger.sock.msgs[0] == b"test.gunicorn.test:666|g" |
| 132 | |
| 133 | |
| 134 | def test_prefix_no_dot(): |
nothing calls this directly
no test coverage detected