

def test_invalid_formdata_content_type():
    form = helpers.FormData()
    invalid_vals = [0, 0.1, {
        
    }, [], b'foo']
    for invalid_val in invalid_vals:
        with pytest.raises(TypeError):
            invalid_val.add_field('foo', 'bar', content_type=invalid_val)

dataset/ETHPy150Open KeepSafe/aiohttp/tests/test_helpers.py test_invalid_formdata_content_type/VarMisuse@52/71 `form`->`invalid_val`