#! /usr/bin/env python3 # $Id$ # Author: David Goodger # Copyright: This module has been placed in the public domain. """ Tests for docutils.transforms.references.Footnotes. """ if __name__ == '__main__': import __init__ # noqa: F401 from test_transforms import DocutilsTestSupport from docutils.transforms.references import Footnotes from docutils.parsers.rst import Parser def suite(): parser = Parser() s = DocutilsTestSupport.TransformTestSuite(parser) s.generateTests(totest) return s totest = {} totest['footnotes'] = ((Footnotes,), [ ["""\ [#autolabel]_ .. [#autolabel] text """, """\ 1