def test_restrictToBounds_SetBoundLower(): global tempVar, arrLowerBound1 returnVar = bounds_checker.restrictToBounds(tempVar, 1.0, None, set_as='bound') assert (returnVar.getValue().tolist() == arrLowerBound1)
def test_restrictToBounds_SetMissingUpper(): global tempVar, arrMaskAbove12 returnVar = bounds_checker.restrictToBounds(tempVar, None, 12, set_as='missing') assert (returnVar.getValue().tolist() == arrMaskAbove12)
def test_restrictToBounds_SetMissingBoth(): global tempVar, arrMaskBelow5Above12 returnVar = bounds_checker.restrictToBounds(tempVar, 5.0, 12, set_as='missing') assert (returnVar.getValue().tolist() == arrMaskBelow5Above12)
def test_restrictToBounds_SetBoundBoth(): global tempVar, arrLowerBound1AndUpperBound10 returnVar = bounds_checker.restrictToBounds(tempVar, 1.0, 10.0, set_as='bound') assert (returnVar.getValue().tolist() == arrLowerBound1AndUpperBound10)
def test_restrictToBounds_SetMissingLower(): global tempVar, arrMaskBelow5 returnVar = bounds_checker.restrictToBounds(tempVar, 5.0, None, set_as='missing') assert (returnVar.getValue().tolist() == arrMaskBelow5)
def test_restrictToBounds_SetBoundUpper(): global tempVar, arrUpperBound10 returnVar = bounds_checker.restrictToBounds(tempVar, None, 10, set_as='bound') assert (returnVar.getValue().tolist() == arrUpperBound10)
def test_restrictToBounds_SetBoundLower(): global tempVar, arrLowerBound1 returnVar = bounds_checker.restrictToBounds(tempVar, 1.0, None , set_as='bound') assert(returnVar.getValue().tolist() == arrLowerBound1)
def test_restrictToBounds_SetMissingBoth(): global tempVar, arrMaskBelow5Above12 returnVar = bounds_checker.restrictToBounds(tempVar, 5.0, 12 , set_as='missing') assert(returnVar.getValue().tolist() == arrMaskBelow5Above12)
def test_restrictToBounds_SetMissingUpper(): global tempVar, arrMaskAbove12 returnVar = bounds_checker.restrictToBounds(tempVar, None, 12 , set_as='missing') assert(returnVar.getValue().tolist() == arrMaskAbove12)
def test_restrictToBounds_SetMissingLower(): global tempVar, arrMaskBelow5 returnVar = bounds_checker.restrictToBounds(tempVar, 5.0, None , set_as='missing') assert(returnVar.getValue().tolist() == arrMaskBelow5)
def test_restrictToBounds_SetBoundBoth(): global tempVar, arrLowerBound1AndUpperBound10 returnVar = bounds_checker.restrictToBounds(tempVar, 1.0, 10.0 , set_as='bound') assert(returnVar.getValue().tolist() == arrLowerBound1AndUpperBound10)
def test_restrictToBounds_SetBoundUpper(): global tempVar, arrUpperBound10 returnVar = bounds_checker.restrictToBounds(tempVar, None, 10 , set_as='bound') assert(returnVar.getValue().tolist() == arrUpperBound10)