MCPcopy Create free account
hub / github.com/psf/cachecontrol / randomdata

Function randomdata

tests/test_storage_filecache.py:21–25  ·  view source on GitHub ↗

Plain random http data generator:

()

Source from the content-addressed store, hash-verified

19
20
21def randomdata():
22 """Plain random http data generator:"""
23 key = "".join(sample(string.ascii_lowercase, randint(2, 4)))
24 val = "".join(sample(string.ascii_lowercase + string.digits, randint(2, 10)))
25 return f"&{key}={val}"
26
27
28class FileCacheTestsMixin:

Callers 1

test_key_lengthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…