Example #1
0
def test_parse_fmx_tbl_corpus(attrib, styles, nature):
    fmx_tbl = etree.Element("TBL", attrib=attrib)
    fmx_corpus = etree.SubElement(fmx_tbl, "CORPUS")
    parser = FormexParser(BaseBuilder())
    state = parser.parse_fmx_corpus(fmx_corpus)
    table = state.table
    assert table.styles == styles
    assert table.nature == nature
Example #2
0
def test_parse_fmx_corpus(attrib, styles):
    fmx_corpus = etree.Element("CORPUS", attrib=attrib)
    parser = FormexParser(BaseBuilder())
    state = parser.parse_fmx_corpus(fmx_corpus)
    table = state.table
    assert table.styles == styles