def testCheckFailedModelsWithoutFailedModels(self): result = check_model_consistency._checkFailedModels( engineMetrics=_PERFECT_PARITY_ALL_ACTIVE["engineMetrics"], verbose=False) self.assertEqual(result, ([], [])) # Repeat with verbose=True result = check_model_consistency._checkFailedModels( engineMetrics=_PERFECT_PARITY_ALL_ACTIVE["engineMetrics"], verbose=True) self.assertEqual(result, ([], []))
def testCheckFailedModelsWithFailedModel(self): warnings, errors = check_model_consistency._checkFailedModels( engineMetrics=_ACTIVE_PARITY_WITH_ONE_ERROR_METRIC["engineMetrics"], verbose=False) self.assertEqual(len(warnings), 1) self.assertEqual(errors, [])
def testCheckFailedModelsWithFailedModel(self): warnings, errors = check_model_consistency._checkFailedModels( engineMetrics=_ACTIVE_PARITY_WITH_ONE_ERROR_METRIC[ "engineMetrics"], verbose=False) self.assertEqual(len(warnings), 1) self.assertEqual(errors, [])