MCPcopy Index your code
hub / github.com/cherrypy/cherrypy / test_UUIDv4_parameter_log_format

Function test_UUIDv4_parameter_log_format

cherrypy/test/test_logging.py:262–272  ·  view source on GitHub ↗

Test rendering of UUID4 within access log.

(log_tracker, monkeypatch, server)

Source from the content-addressed store, hash-verified

260
261
262def test_UUIDv4_parameter_log_format(log_tracker, monkeypatch, server):
263 """Test rendering of UUID4 within access log."""
264 monkeypatch.setattr(
265 'cherrypy._cplogging.LogManager.access_log_format',
266 '{i}',
267 )
268 log_tracker.markLog()
269 host = webtest.interface(webtest.WebCase.HOST)
270 port = webtest.WebCase.PORT
271 requests.get('http://%s:%s/as_string' % (host, port))
272 log_tracker.assertValidUUIDv4()
273
274
275def test_escaped_output(log_tracker, server):

Callers

nothing calls this directly

Calls 3

markLogMethod · 0.80
assertValidUUIDv4Method · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…