Mercurial > bitten > bitten-test
view bitten/util/tests/__init__.py @ 779:d29499a4450c
Copy trac's `trac.util.presentation.to_json` method to prevent `json` module requirement, and incorporate fallback methods to support Trac 0.11 etc. See #426
author | dfraser |
---|---|
date | Wed, 28 Apr 2010 09:18:15 +0000 |
parents | d960021f902f |
children | 7c80375d4817 |
line wrap: on
line source
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> # Copyright (C) 2007 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://bitten.edgewall.org/wiki/License. import doctest import unittest from bitten.util import xmlio as xmlio_module from bitten.util.tests import xmlio as xmlio_tests from bitten.util.tests import json as json_tests def suite(): suite = unittest.TestSuite() suite.addTest(doctest.DocTestSuite(xmlio_module)) suite.addTest(json_tests.suite()) suite.addTest(xmlio_tests.suite()) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')