def test_enumbering(self): """ module_tested: enumbering of Footnotes""" m = make_macro(self.request, self.page) text = 'a' FootNote.execute(m, text) text = 'b' FootNote.execute(m, text) result = FootNote.emit_footnotes(m.request, m.request.formatter) assert result.endswith('2</a>)</li></ol></div>')
def execute(macro, args): request = macro.request formatter = macro.formatter txt = RefText.execute(macro, args) return FootNote.execute(macro, txt)