def test_sup(self): expected_sel = p.Selection(span=[(1730, 1799)], gorn=[p.GornAddress([11, 2, 3])], text='blop blop split shares') expected = p.Sup(expected_sel) txt = ex_sup1 self.assertParse(p._sup('sup1'), expected, txt)
def _read_Sup(node): return ty.Sup(_read_Selection(node))