ž
¬ÿf‘( c @ s¬ d Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d Z
d Z d Z d Z
d Z d
Z d d „ Z d
d „ Z Gd d „ d e ƒ Z e Z d S( u Unittest main programi Ni ( u loaderu runner( u installHandleru) -f, --failfast Stop on first failure
u7 -c, --catch Catch control-C and display results
u= -b, --buffer Buffer stdout and stderr during test runs
u» Usage: %(progName)s [options] [tests]
Options:
-h, --help Show this message
-v, --verbose Verbose output
-q, --quiet Minimal output
%(failfast)s%(catchbreak)s%(buffer)s
Examples:
%(progName)s test_module - run tests from test_module
%(progName)s module.TestClass - run tests from module.TestClass
%(progName)s module.Class.test_method - run specified test method
[tests] can be a list of any number of test modules, classes and test
methods.
Alternative Usage: %(progName)s discover [options]
Options:
-v, --verbose Verbose output
%(failfast)s%(catchbreak)s%(buffer)s -s directory Directory to start discovery ('.' default)
-p pattern Pattern to match test files ('test*.py' default)
-t directory Top level directory of project (default to
start directory)
For test discovery all test modules must be importable from the top
level directory of the project.
u1 Usage: %(progName)s [options] [test] [...]
Options:
-h, --help Show this message
-v, --verbose Verbose output
-q, --quiet Minimal output
%(failfast)s%(catchbreak)s%(buffer)s
Examples:
%(progName)s - run default set of tests
%(progName)s MyTestSuite - run suite 'MyTestSuite'
%(progName)s MyTestCase.testSomething - run MyTestCase.testSomething
%(progName)s MyTestCase - run all 'test*' test methods
in MyTestCase
c C s¯ t j j | ƒ r« | j ƒ j d ƒ r« t j j | ƒ r… t j j | t j ƒ ƒ } t j j | ƒ sx | j t j ƒ r| | S| } n | d d … j
d d ƒ j
d d ƒ S| S( Nu .pyi u \u .u /iýÿÿÿ( u osu pathu isfileu loweru endswithu isabsu relpathu getcwdu
startswithu pardiru replace( u nameu rel_path( ( u2 /opt/alt/python33/lib64/python3.3/unittest/main.pyu
_convert_name= s '$ &u
_convert_namec C s d d „ | Dƒ S( Nc S s g | ] } t | ƒ ‘ q S( ( u
_convert_name( u .0u name( ( u2 /opt/alt/python33/lib64/python3.3/unittest/main.pyu