Update of /cvsroot/docstring/dps/test/test_transforms
In directory usw-pr-cvs1:/tmp/cvs-serv12936/dps/test/test_transforms
Added Files:
test_final_checks.py
Log Message:
Tests for dps.transforms.universal.FinalChecks.
--- NEW FILE: test_final_checks.py ---
#! /usr/bin/env python
"""
:Author: David Goodger
:Contact: go...@us...
:Revision: $Revision: 1.1 $
:Date: $Date: 2002/04/13 16:59:46 $
:Copyright: This module has been placed in the public domain.
Tests for dps.transforms.universal.FinalChecks.
"""
import DPSTestSupport
from dps.transforms.universal import FinalChecks
import UnitTestFolder
try:
from restructuredtext import Parser
except ImportError:
from dps.parsers.restructuredtext import Parser
def suite():
parser = Parser()
s = DPSTestSupport.TransformTestSuite(parser)
s.generateTests(totest)
return s
totest = {}
totest['final_checks'] = ((FinalChecks,), [
["""\
Unknown reference_.
""",
"""\
<document>
<paragraph>
Unknown
<problematic id="id2" refid="id1">
reference_
.
<system_message backrefs="id2" id="id1" level="3" type="ERROR">
<paragraph>
Unknown target name: "reference".
"""],
])
if __name__ == '__main__':
import unittest
unittest.main(defaultTest='suite')
|