Package epyunit :: Module SubprocUnit
[hide private]
[frames] | no frames]

Module SubprocUnit

source code

Basic classes and functions for unittests.

Version: 0.2.2

Author: Arno-Can Uestuensoez

Copyright: Copyright (C) 2010-2016 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez

License: Artistic-License-2.0 + Forced-Fairplay-Constraints

Classes [hide private]
  SProcUnitRulesException
Application error of unittest rules.
  SubprocessUnitException
Failure of subprocess call.
  SProcUnitRules
The 'epyunit.SubprocUnit.SProcUnitRules' defines the expected data, and the minimal degree of expectation.
  SubprocessUnit
Wraps and checks results from execution of subprocesses by objects of class 'SProcUnitRules'.
Variables [hide private]
  __uuid__ = '9de52399-7752-4633-9fdc-66c87a9200b8'
  version = '2.7'
  _parentrepr = re.compile(r'\{(.*[^\}])\}')
static precompiled 're' for parent '__repr__'.
  _P_OK = 0
hasSuccess
  _P_NOK = 1
hasFailure
  _P_WEIGHT = 3
simple counter compare, bigger wins: (resultok, resultnok), else default
  _P_CUSTOM = 4
callback for custom function
  _prioenums = {0: '_P_OK', 1: '_P_NOK', 3: '_P_WEIGHT', 4: '_P_...
  _E_IGN = 4
exittype: ignore
  _E_OK = 8
exittype: OK
  _E_NOK = 16
exittype: NOK
  _E_VAL = 32
exittype: value
  _exitenums = {4: '_E_IGN', 8: '_E_OK', 16: '_E_NOK', 32: '_E_V...
  __package__ = None
Variables Details [hide private]

_prioenums

Value:
{0: '_P_OK', 1: '_P_NOK', 3: '_P_WEIGHT', 4: '_P_CUSTOM'}

_exitenums

Value:
{4: '_E_IGN', 8: '_E_OK', 16: '_E_NOK', 32: '_E_VAL'}