Exemple #1
0
def test_custom_params_int_too_big():
    result = add_custom_parameters([('key', TOO_BIG)])
    assert not result
Exemple #2
0
def test_custom_params_name_not_string():
    result = add_custom_parameters([(1, 'value')])
    assert not result
Exemple #3
0
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
Exemple #4
0
def test_custom_params_value_too_long():
    result = add_custom_parameters([('key', TOO_LONG)])
    assert result
Exemple #5
0
def test_custom_params_key_too_long():
    result = add_custom_parameters([(TOO_LONG, 'value')])
    assert not result
Exemple #6
0
def test_custom_params_ok():
    result = add_custom_parameters([('key', 'value')])
    assert result