def components_contain_id(components_data, component_id):
    """
    Tests whether component_id is id of component.

    :param components_data: list of components
    :param component_id: id of component
    :return: True if component_id is component
    """
    for component in components_data:
        if component_id == component['id']:
            return True
    return False