From 4f893a1e6739966b50bd81317c0b0fc63d6ffd6c Mon Sep 17 00:00:00 2001 From: goodger Date: Thu, 25 Apr 2002 03:52:08 +0000 Subject: Renamed from *2.py (dup module names OK now); enabled running standalone git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@49 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- test/test_transforms/test_footnotes.py | 520 +++++++++++++++++++++++++++++++++ 1 file changed, 520 insertions(+) create mode 100755 test/test_transforms/test_footnotes.py (limited to 'test/test_transforms/test_footnotes.py') diff --git a/test/test_transforms/test_footnotes.py b/test/test_transforms/test_footnotes.py new file mode 100755 index 000000000..9a3c09aa5 --- /dev/null +++ b/test/test_transforms/test_footnotes.py @@ -0,0 +1,520 @@ +#! /usr/bin/env python + +""" +:Author: David Goodger +:Contact: goodger@users.sourceforge.net +:Revision: $Revision$ +:Date: $Date$ +:Copyright: This module has been placed in the public domain. + +Tests for docutils.transforms.references.Footnotes. +""" + +from __init__ 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 + +