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, ([], []))
示例#2
0
    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, [])
示例#4
0
    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, [])