def test_build_child_parent_link(self):
    'Test function build_child_parent_link by checking the values of\n        child_list and parent_list.'
    id_to_node = copy.deepcopy(CONST_ID_TO_NODE_NO_RELATION)
    id_to_node = parse_ebi.build_child_parent_link(CONST_FILE_TERMS, id_to_node)

    def get_node_value_set(node_list):
        value_set = set()
        for node in node_list:
            value_set.add(node.value)
        return value_set
    for id_key in id_to_node:
        parent_value_set = get_node_value_set(id_to_node[id_key].parent_list)
        const_parent_value_set = get_node_value_set(CONST_ID_TO_NODE[id_key].parent_list)
        child_value_set = get_node_value_set(id_to_node[id_key].child_list)
        const_child_value_set = get_node_value_set(CONST_ID_TO_NODE[id_key].child_list)
        self.assertEqual(parent_value_set, const_parent_value_set)
        self.assertEqual(child_value_set, const_child_value_set)
Test function build_child_parent_link by checking the values of
child_list and parent_list.
def test_build_child_parent_link(self):
    'Test function build_child_parent_link by checking the values of\n        child_list and parent_list.'
    id_to_node = copy.deepcopy(CONST_ID_TO_NODE_NO_RELATION)
    id_to_node = parse_ebi.build_child_parent_link(CONST_FILE_TERMS, id_to_node)

    def get_node_value_set(node_list):
        value_set = set()
        for node in node_list:
            value_set.add(node.value)
        return value_set
    for id_key in id_to_node:
        parent_value_set = get_node_value_set(id_to_node[id_key].parent_list)
        const_parent_value_set = get_node_value_set(CONST_ID_TO_NODE[id_key].parent_list)
        child_value_set = get_node_value_set(id_to_node[id_key].child_list)
        const_child_value_set = get_node_value_set(CONST_ID_TO_NODE[id_key].child_list)
        self.assertEqual(parent_value_set, const_parent_value_set)
        self.assertEqual(child_value_set, const_child_value_set)