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