Exemple #1
0
def test_inputs_outputs4():
    # TODO value, interface
    in_ = sign_inputs(h)[0]
    out_ = sign_outputs(h)[0]
    
    assert in_['name'] == 'a'
    #assert in_['value'] == '42'
    #assert in_['interface'] == IInt
    assert out_['name'] == 'result'
Exemple #2
0
def test_inputs_outputs2():
    #assert sign_inputs(f) == [{'interface': openalea.core.interface.IInt, 'name': 'a', 'value': '42'}]
    #assert sign_outputs(f) == [{'interface': openalea.core.interface.IBool, 'name': 'result', 'value': 'True'}]
    in_ = sign_inputs(g)[0]
    out_ = sign_outputs(g)[0]
    
    assert in_['name'] == 'a'
    assert in_['value'] == '42'
    assert in_['interface'] == IInt
    assert out_['name'] == 'result'
    assert out_['value'] == 'True'
    assert out_['interface'] == IBool