def test_checks_within_range(capsys):
    for a_check_type, a_expected_value in check_configs_range.items():
        test_util.check_within_range(eaton_ups_check_plugin_path, a_check_type,
                                     a_expected_value["value"],
                                     a_expected_value["summary"])
        if a_expected_value["has_perfdata"]:
            test_util.check_performance_data(eaton_ups_check_plugin_path,
                                             a_check_type,
                                             a_expected_value["value"])
def test_checks_within_range(capsys):
    #    pydevd.settrace('172.29.153.190') # replace IP with address of Eclipse host machine
    for a_check_type, a_expected_value in check_configs_range.items():
        test_util.check_within_range(apc_ups_check_plugin_path, a_check_type,
                                     a_expected_value["value"],
                                     a_expected_value["summary"])
        if a_expected_value["has_perfdata"]:
            test_util.check_performance_data(apc_ups_check_plugin_path,
                                             a_check_type,
                                             a_expected_value["value"])
def test_checks_above_threshold(capsys):
    for a_check_type, a_expected_value in check_configs_above_threshold.items(
    ):
        test_util.check_above_threshold(eaton_ups_check_plugin_path,
                                        a_check_type,
                                        a_expected_value["value"],
                                        a_expected_value["summary"])
        if a_expected_value["has_perfdata"]:
            test_util.check_performance_data(eaton_ups_check_plugin_path,
                                             a_check_type,
                                             a_expected_value["value"])
def test_checks_above_threshold(capsys):
    for a_check_type, a_expected_value in check_configs_above_threshold.items():
        test_util.check_above_threshold(
            apc_ups_check_plugin_path
            , a_check_type
            , a_expected_value["value"]
            , a_expected_value["summary"])
        if a_expected_value["has_perfdata"]:
            test_util.check_performance_data(
                apc_ups_check_plugin_path
                , a_check_type
                , a_expected_value["value"])
def test_checks_within_range(capsys):
#    pydevd.settrace('172.29.153.190') # replace IP with address of Eclipse host machine
    for a_check_type, a_expected_value in check_configs_range.items():
        test_util.check_within_range(
            apc_ups_check_plugin_path
            , a_check_type
            , a_expected_value["value"]
            , a_expected_value["summary"])
        if a_expected_value["has_perfdata"]:
            test_util.check_performance_data(
                apc_ups_check_plugin_path
                , a_check_type
                , a_expected_value["value"])