Exemplo n.º 1
0
 def testMinimalLatex(self):
     """The link and floats stuff is dropped by the LaTeX renderer"""
     link = autolink.SourceLink(None)
     core.Link(link, string='Content', url='something')
     res = self.render(link, renderer=base.LatexRenderer())
     self.assertSize(res, 1)
     self.assertLatexString(res(0), 'Content')
Exemplo n.º 2
0
    def testMinimalHTML(self):
        """SourceLink is just a container for other tokens; by itself it does nothing."""

        link = autolink.SourceLink(None)
        res = self.render(link, renderer=base.HTMLRenderer())
        self.assertSize(res, 0)
        res = self.render(link, renderer=base.MaterializeRenderer())
        self.assertSize(res, 0)
        res = self.render(link, renderer=base.RevealRenderer())
        self.assertSize(res, 0)