示例#1
0
def test_simple_member_from_str4():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member("enum_float"), "1.0") == 1.0
示例#2
0
def test_simple_member_from_str2():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member("float_n"), "1.0") == 1.0
示例#3
0
def test_simple_member_from_str3():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member("enum"), "a") == "a"
示例#4
0
def test_simple_member_from_str1():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member("string"), "a") == "a"
示例#5
0
def test_simple_member_from_str4():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member('enum_float'), '1.0') == 1.0
示例#6
0
def test_simple_member_from_str3():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member('enum'), 'a') == 'a'
示例#7
0
def test_simple_member_from_str2():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member('float_n'), '1.0') == 1.0
示例#8
0
def test_simple_member_from_str1():
    aux = _Aux()
    assert simple_member_from_str(aux.get_member('string'), 'a') == 'a'