view genshi/filters/tests/transform.py @ 501:3073ac688651

Added new markup transformation filter contributed by Alec Thomas (#122). This provides gorgeous jQuery-inspired stream transformation capabilities based on XPath expressions.
author cmlenz
date Mon, 04 Jun 2007 17:13:10 +0000
parents
children ee48a06a16d6
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
    suite = doctest.DocTestSuite(genshi.filters.transform,
                                 optionflags=doctest.NORMALIZE_WHITESPACE,
                                 extraglobs={'HTML': HTML})
    return suite

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