def test_tagvis_network_provider_children(provider, appliance, request, relationship, view,
                                          tag, user_restricted):
    """
    Polarion:
        assignee: anikifor
        initialEstimate: 1/8h
        casecomponent: Tagging
    """
    collection = appliance.collections.network_providers.filter({'provider': provider})
    network_provider = collection.all()[0]

    network_provider.add_tag(tag=tag)
    request.addfinalizer(lambda: network_provider.remove_tag(tag=tag))

    actual_visibility = child_visibility(appliance, network_provider, relationship, view)
    assert actual_visibility

    with user_restricted:
        actual_visibility = child_visibility(appliance, network_provider, relationship, view)
        assert not actual_visibility