Mercurial > genshi > genshi-test
view genshi/filters/tests/transform.py @ 668:ee48a06a16d6
Applied patch from cboos, fixing #168. Thanks!
author | athomas |
---|---|
date | Tue, 18 Dec 2007 00:03:41 +0000 |
parents | 3073ac688651 |
children | 1f3c561f740a 67d324a62cc0 |
line wrap: on
line source
# -*- coding: utf-8 -*- # # 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://genshi.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://genshi.edgewall.org/log/. import doctest import unittest import genshi.filters.transform def suite(): from genshi.input import HTML from genshi.core import Markup from genshi.builder import tag suite = doctest.DocTestSuite(genshi.filters.transform, optionflags=doctest.NORMALIZE_WHITESPACE, extraglobs={'HTML': HTML, 'tag': tag, 'Markup': Markup}) return suite if __name__ == '__main__': unittest.main(defaultTest='suite')