def test_find_component_parent_with_non_top_level_parent():
    client = AtomClient(**AUTH)
    resource_id = client.find_parent_id_for_component('test-item')

    assert resource_id == 'test-subfonds'
def test_find_component_parent_with_non_top_level_parent():
    client = AtomClient(**AUTH)
    resource_id = client.find_parent_id_for_component("test-item")

    assert resource_id == "test-subfonds"
Esempio n. 3
0
def test_find_component_parent_with_top_level_parent():
    client = AtomClient(**AUTH)
    resource_id = client.find_parent_id_for_component('test-subfonds')

    assert resource_id == 'test-fonds'