def test_custom_params_int_too_big(): result = add_custom_parameters([('key', TOO_BIG)]) assert not result
def test_custom_params_name_not_string(): result = add_custom_parameters([(1, 'value')]) assert not result
def test_custom_params_too_many(): item_list = [('key-%02d' % i, 'value') for i in range(129)] result = add_custom_parameters(item_list) assert not result
def test_custom_params_value_too_long(): result = add_custom_parameters([('key', TOO_LONG)]) assert result
def test_custom_params_key_too_long(): result = add_custom_parameters([(TOO_LONG, 'value')]) assert not result
def test_custom_params_ok(): result = add_custom_parameters([('key', 'value')]) assert result