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

Method test_ie7_unc_path

tests/test_formparser.py:322–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

320
321 @pytest.mark.filterwarnings("ignore::pytest.PytestUnraisableExceptionWarning")
322 def test_ie7_unc_path(self):
323 client = Client(form_data_consumer)
324 data_file = join(dirname(__file__), "multipart", "ie7_full_path_request.http")
325 data = get_contents(data_file)
326 boundary = "---------------------------7da36d1b4a0164"
327 with client.post(
328 "/?object=cb_file_upload_multiple",
329 data=data,
330 content_type=f'multipart/form-data; boundary="{boundary}"',
331 content_length=len(data),
332 ) as response:
333 lines = response.get_data().split(b"\n", 3)
334 assert lines[0] == b"'Sellersburg Town Council Meeting 02-22-2010doc.doc'"
335
336 def test_end_of_file(self):
337 # This test looks innocent but it was actually timing out in

Callers

nothing calls this directly

Calls 4

postMethod · 0.95
ClientClass · 0.90
get_contentsFunction · 0.85
get_dataMethod · 0.45

Tested by

no test coverage detected