view markup/tests/__init__.py @ 147:a4a0ca41b6ad trunk

Use `xmlcharrefreplace` when encoding the output in `Stream.render()`, so that encoding the output to legacy encodings such as ASCII or ISO-8859-1 should always work.
author cmlenz
date Tue, 15 Aug 2006 13:17:51 +0000
parents e92fb402ee04
children
line wrap: on
line source
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://markup.edgewall.org/wiki/License.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://markup.edgewall.org/log/.

import doctest
import unittest

def suite():
    import markup
    from markup.tests import builder, core, eval, filters, input, output, \
                             path, template
    suite = unittest.TestSuite()
    suite.addTest(doctest.DocTestSuite(markup))
    suite.addTest(builder.suite())
    suite.addTest(core.suite())
    suite.addTest(eval.suite())
    suite.addTest(filters.suite())
    suite.addTest(input.suite())
    suite.addTest(output.suite())
    suite.addTest(path.suite())
    suite.addTest(template.suite())
    return suite

if __name__ == '__main__':
    unittest.main(defaultTest='suite')
Copyright (C) 2012-2017 Edgewall Software