コード例 #1
0
def test_generate_summary_for_results_critical():
    assert paasta_metastatus.generate_summary_for_check(
        "Myservice", False
    ) == "Myservice Status: %s" % PaastaColors.red("CRITICAL")
コード例 #2
0
def test_generate_summary_for_results_ok():
    assert paasta_metastatus.generate_summary_for_check(
        "Myservice", True
    ) == "Myservice Status: %s" % PaastaColors.green("OK")