Module unittest :: Class TestProgram
[hide private]
[frames] | no frames]

Class TestProgram

source code

object --+
         |
        TestProgram

A command-line program that runs a set of tests; this is primarily for making test modules conveniently executable.

Instance Methods [hide private]
 
__init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None, testLoader=TestLoader())
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
usageExit(self, msg=None) source code
 
parseArgs(self, argv) source code
 
createTests(self) source code
 
runTests(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  USAGE = 'Usage: %(progName)s [options] [test] [...]\n\nOptions...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None, testLoader=TestLoader())
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

USAGE

Value:
'''Usage: %(progName)s [options] [test] [...]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output

Examples:
...