MCPcopy
hub / github.com/pallets/werkzeug / check_list_content

Function check_list_content

tests/test_test.py:175–179  ·  view source on GitHub ↗
(b, length)

Source from the content-addressed store, hash-verified

173 assert b.form.getlist("foo") == ["bar1", "bar2"]
174
175 def check_list_content(b, length):
176 foo = b.files.getlist("foo")
177 assert len(foo) == length
178 for obj in foo:
179 assert isinstance(obj, FileStorage)
180
181 b = EnvironBuilder(data={"foo": BytesIO()})
182 check_list_content(b, 1)

Callers 1

Calls 1

getlistMethod · 0.45

Tested by

no test coverage detected