Python test.test_xml_etree() Examples

The following are 6 code examples of test.test_xml_etree(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module test , or try the search function .
Example #1
Source File: test_xml_etree.py    From BinderFilter with MIT License 5 votes vote down vote up
def test_main(module_name='xml.etree.ElementTree'):
    from test import test_xml_etree

    use_py_module = (module_name == 'xml.etree.ElementTree')

    # The same doctests are used for both the Python and the C implementations
    assert test_xml_etree.ET.__name__ == module_name

    # XXX the C module should give the same warnings as the Python module
    with CleanContext(quiet=not use_py_module):
        test_support.run_doctest(test_xml_etree, verbosity=True)

    # The module should not be changed by the tests
    assert test_xml_etree.ET.__name__ == module_name 
Example #2
Source File: test_xml_etree.py    From oss-ftp with MIT License 5 votes vote down vote up
def test_main(module_name='xml.etree.ElementTree'):
    from test import test_xml_etree

    use_py_module = (module_name == 'xml.etree.ElementTree')

    # The same doctests are used for both the Python and the C implementations
    assert test_xml_etree.ET.__name__ == module_name

    # XXX the C module should give the same warnings as the Python module
    with CleanContext(quiet=not use_py_module):
        test_support.run_doctest(test_xml_etree, verbosity=True)

    # The module should not be changed by the tests
    assert test_xml_etree.ET.__name__ == module_name 
Example #3
Source File: test_xml_etree.py    From gcblue with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def test_main(module_name='xml.etree.ElementTree'):
    from test import test_xml_etree

    use_py_module = (module_name == 'xml.etree.ElementTree')

    # The same doctests are used for both the Python and the C implementations
    assert test_xml_etree.ET.__name__ == module_name

    # XXX the C module should give the same warnings as the Python module
    with CleanContext(quiet=not use_py_module):
        test_support.run_doctest(test_xml_etree, verbosity=True)

    # The module should not be changed by the tests
    assert test_xml_etree.ET.__name__ == module_name 
Example #4
Source File: test_xml_etree.py    From medicare-demo with Apache License 2.0 5 votes vote down vote up
def test_main():
    from test import test_xml_etree
    test_support.run_doctest(test_xml_etree, verbosity=True) 
Example #5
Source File: test_xml_etree.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    from test import test_xml_etree
    test_support.run_doctest(test_xml_etree) 
Example #6
Source File: test_xml_etree.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def test_main():
    from test import test_xml_etree
    test_support.run_doctest(test_xml_etree)