MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_view_zip_empty

Function test_view_zip_empty

test/mitmproxy/contentviews/test__view_zip.py:43–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_view_zip_empty():
44 buffer = io.BytesIO()
45 with zipfile.ZipFile(buffer, "w"):
46 pass
47 assert (
48 zip.prettify(buffer.getvalue(), meta("application/zip")) == "(empty zip file)"
49 )
50
51
52def test_render_priority():

Callers

nothing calls this directly

Calls 3

getvalueMethod · 0.80
metaFunction · 0.70
prettifyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…