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_get_sources():
    param = 'gpp'
    x = IlambConfigFile(param)
    x.get_sources()
    assert_equal(len(x.sources), n_sources)