def test_read_method_multiple_variables():
    param = ('gpp', 'lai', 'le')
    x = IlambConfigFile(param, relationships=True)
    for var in x.variables:
        x.read(var)
        assert_true(isinstance(x.config[var], SafeConfigParser))
    assert_equal(len(param), len(x.config.keys()))
def test_add_relationships():
    param = ('gpp', 'lai')
    x = IlambConfigFile(param, relationships=True)
    for var in x.variables:
        x.read(var)
    x.get_sources()
    x.add_relationships()
    rel = x.config['gpp'].get('Fluxnet-MTE', 'relationships')
    assert_equal(relationship, rel)
def test_read_method_unknown_variable():
    param = 'foo'
    x = IlambConfigFile(param)
    x.read(param)
def test_read_method():
    param = 'gpp'
    x = IlambConfigFile(param)
    x.read(param)
    assert_true(isinstance(x.config[param], SafeConfigParser))