def test_get_schema_from_text(self):
    'Test function get_schema_from_text by comparing the final schema.'
    new_source_map = {'references': {}}
    term = CONST_FILE_TERMS[1]
    schema_res = parse_ebi.get_schema_from_text(term, CONST_ID_TO_NODE, new_source_map, CONST_ID_TO_CLASS_NAME, CONST_INTERACTION_TYPE_ID_SET, set(), set())
    self.assertEqual(schema_res[0], CONST_SCHEMA1)
    term = CONST_FILE_TERMS[2]
    schema_res = parse_ebi.get_schema_from_text(term, CONST_ID_TO_NODE, new_source_map, CONST_ID_TO_CLASS_NAME, CONST_INTERACTION_TYPE_ID_SET, set(), set())
    self.assertEqual(schema_res[0], CONST_SCHEMA2)
Test function get_schema_from_text by comparing the final schema.
def test_get_schema_from_text(self):
    
    new_source_map = {'references': {}}
    term = CONST_FILE_TERMS[1]
    schema_res = parse_ebi.get_schema_from_text(term, CONST_ID_TO_NODE, new_source_map, CONST_ID_TO_CLASS_NAME, CONST_INTERACTION_TYPE_ID_SET, set(), set())
    self.assertEqual(schema_res[0], CONST_SCHEMA1)
    term = CONST_FILE_TERMS[2]
    schema_res = parse_ebi.get_schema_from_text(term, CONST_ID_TO_NODE, new_source_map, CONST_ID_TO_CLASS_NAME, CONST_INTERACTION_TYPE_ID_SET, set(), set())
    self.assertEqual(schema_res[0], CONST_SCHEMA2)