def METHOD_NAME():
    # Arrange
    result1 = CheckResult(0, 'check1')
    result1.conditions_results = [ConditionResult(ConditionCategory.PASS)]
    result2 = CheckResult(0, 'check2')
    result2.conditions_results = [ConditionResult(ConditionCategory.WARN)]
    result3 = CheckResult(0, 'check3')
    result3.conditions_results = [ConditionResult(ConditionCategory.FAIL)]
    # Act & Assert
    not_passed_checks = SuiteResult('test', [result1, result2]).get_not_passed_checks()
    assert_that(not_passed_checks, has_length(1))
    not_passed_checks = SuiteResult('test', [result1, result2]).get_not_passed_checks(fail_if_warning=False)
    assert_that(not_passed_checks, has_length(0))
    not_passed_checks = SuiteResult('test', [result1, result2, result3]).get_not_passed_checks()
    assert_that(not_passed_checks, has_length(2))