示例#1
0
def test_generate_fixed_length_param_incomplete():
    param = generate_fixed_length_param('[INTEGER_WITH_LENGTH_4')
    assert param == '[INTEGER_WITH_LENGTH_4'
示例#2
0
def test_generate_fixed_length_param_json():
    param = generate_fixed_length_param('[JSON_WITH_LENGTH_3]')
    assert param == {'0': '0', '1': '1', '2': '2'}
示例#3
0
def test_generate_fixed_length_param_integer_array():
    param = generate_fixed_length_param('[INTEGER_ARRAY_WITH_LENGTH_4]')
    assert param == [1, 1, 1, 1]
示例#4
0
def test_generate_fixed_length_param_integer():
    param = generate_fixed_length_param('[INTEGER_WITH_LENGTH_4]')
    assert param == 1111
示例#5
0
def test_generate_fixed_length_param_string_array():
    param = generate_fixed_length_param('[STRING_ARRAY_WITH_LENGTH_5]')
    assert param == ['a', 'a', 'a', 'a', 'a']
示例#6
0
def test_generate_fixed_length_param_string():
    param = generate_fixed_length_param('[STRING_WITH_LENGTH_5]')
    assert param == 'aaaaa'