Ejemplo n.º 1
0
def __getChecksToValidateOutputAfterClear():
  checks = (
    AMChecks.EqualCheck( fieldName = "{}.outPlane".format( MODULE_NAME ),
                         value = None ),
    AMChecks.EqualCheck( fieldName = "{}.outCMSPx".format( MODULE_NAME ),
                         value = None ),
    AMChecks.EqualCheck( fieldName = "{}.outLog".format( MODULE_NAME ),
                         value = None ),
  )
  return checks
Ejemplo n.º 2
0
def __getChecksToValidateOutputAfterUpdate( testData ):
  checks = (
    AMChecks.ImageCompareCheck( "Validate_output0" ),
    AMChecks.FloatEqualCheck( fieldName = "{}.outPlane".format( MODULE_NAME ),
                              value = testData.outPlane,
                              epsilon = 0.0 ),
    AMChecks.EqualCheck( fieldName = "{}.outCMSPx".format( MODULE_NAME ),
                         value = testData.outCMSPx ),
    AMChecks.EqualCheck( fieldName = "{}.outLog".format( MODULE_NAME ),
                         value = testData.outLog ),
  )
  Logging.infoHTML( "<b>ToDo: Set up epsilon value of \"FloatEqualCheck\" objects!</b>" )
  return checks
Ejemplo n.º 3
0
def testError_inBins( testData ):
  __provideInput( testData )
  checksToExecute = (
    AMChecks.EqualCheck( fieldName = "{}.statusCode".format( MODULE_NAME ),
                         value     = StatusCode.ERROR_INPUT_PARAMETER ),
  )
  AMTests.testFailedUpdate( MODULE_NAME, checksToExecute )
def __getChecksToValidateOutputAfterUpdate(testData):
    checks = (AMChecks.ImageCompareCheck("Validate_output0"), )
    return checks
Ejemplo n.º 5
0
def testError_inMidsagittalSurface(testData):
    __provideInput(testData)
    checksToExecute = (AMChecks.EqualCheck(
        fieldName="{}.statusCode".format(MODULE_NAME),
        value=StatusCode.ERROR_INPUT_OBJECT), )
    AMTests.testFailedUpdate(MODULE_NAME, checksToExecute)