Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 24788a79727b2865c2ebb171420cb530 > files > 474

python-zope-testing-3.9.5-6.fc13.noarch.rpm

Using subunit output without subunit installed
==============================================

To use the --subunit reporting option, you must have subunit installed. If you
do not, you will get an error message:

    >>> import os.path, sys
    >>> directory_with_tests = os.path.join(this_directory, 'testrunner-ex')
    >>> defaults = [
    ...     '--path', directory_with_tests,
    ...     '--tests-pattern', '^sampletestsf?$',
    ...     ]

    >>> from zope.testing import testrunner

    >>> sys.argv = 'test --subunit'.split()
    >>> _ = testrunner.run_internal(defaults)
            Subunit is not installed. Please install Subunit
            to generate subunit output.
    <BLANKLINE>