def test_wikiexternal(conv, input_, output): elem = ET.Element(None) conv.handle_external_links(elem, Iri(input_)) href = elem.get(xlink.href) assert href == output
def test_wiki(app, conv, input_, output): assert 'MoinMoin' in app.cfg.interwiki_map elem = ET.Element(None) conv.handle_wiki_links(elem, Iri(input_)) assert elem.get(xlink.href) == output
def test_wikilocal(conv, input_, page, output): elem = ET.Element(None) conv.handle_wikilocal_links(elem, Iri(input_), Iri(page)) assert elem.get(xlink.href) == output
def _do_wikilocal(self, input, page, output, skip=None): if skip: py.test.skip(skip) elem = ET.Element(None) self.conv.handle_wikilocal_links(elem, Iri(input), Iri(page)) assert elem.get(xlink.href) == output