Package mrv :: Package automation :: Module qa :: Class QACheckResult
[hide private]
[frames] | no frames]

Class QACheckResult

source code

object --+
         |
        QACheckResult

Wrapper class declaring test results as a type that provides a simple interface to retrieve the test results

Note: test results are only reqtrieved by QACheckAttribute plugs

Instance Methods [hide private]
 
__init__(self, fixed_items=None, failed_items=None, header='')
Initialize ourselves with default values
source code
 
fixedItems(self)
Returns: list( Item , ...
source code
 
failedItems(self)
Returns: ( list( Item, ...
source code
 
isNull(self)
Returns: True if the test result is empty, and thus resembles a null value
source code
 
isSuccessful(self)
Returns: True if the check is successful, and False if there are at least some failed objects
source code
 
__str__(self)
str(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fixed_items=None, failed_items=None, header='')
(Constructor)

source code 
Initialize ourselves with default values
Parameters:
  • fixed_items - if list of items, the instance is initialized with it
  • failed_items - list of items that could not be fixed
  • header - optional string giving additional specialized information on the outcome of the test. Tests must supply a header - otherwise the result will be treated as failed check
Overrides: object.__init__

fixedItems(self)

source code 
Returns:
list( Item , ... ) list of items ( the exact type may differ depending on the actual test ) which have been fixed so they represent the desired state

failedItems(self)

source code 
Returns:
( list( Item, ... ) list of failed items being items that could not be fixed and are not yet in the desired state

isNull(self)

source code 
Returns:
True if the test result is empty, and thus resembles a null value

isSuccessful(self)

source code 
Returns:
True if the check is successful, and False if there are at least some failed objects

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)