Ejemplo n.º 1
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 testError_inMidsagittalSurface( testData ):
  __provideInput( testData )
  checksToExecute = (
    AMChecks.EqualCheck( fieldName = "{}.statusCode".format( MODULE_NAME ),
                         value     = StatusCode.ERROR_INPUT_OBJECT ),
  )
  AMTests.testFailedUpdate( MODULE_NAME, checksToExecute )
def TEST_Update_And_Clear():
  """Tests module's update and clear functionality."""
  executeTestOfUpdate( __getDefaultTestData())
  AMTests.testClear( MODULE_NAME, checkList = __getChecksToValidateOutputAfterClear())
def __processInput():
  AMTests.testUpdate( MODULE_NAME )
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)