MCPcopy
hub / github.com/aio-libs/aiohttp / test_invalid_formdata_content_transfer_encoding

Function test_invalid_formdata_content_transfer_encoding

tests/test_helpers.py:100–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99
100def test_invalid_formdata_content_transfer_encoding():
101 form = helpers.FormData()
102 invalid_vals = [0, 0.1, {}, [], b'foo']
103 for invalid_val in invalid_vals:
104 with pytest.raises(TypeError):
105 form.add_field('foo',
106 'bar',
107 content_transfer_encoding=invalid_val)
108
109
110def test_access_logger_format():

Callers

nothing calls this directly

Calls 1

add_fieldMethod · 0.95

Tested by

no test coverage detected