def test_humanize_error_equal():
    actual = autoscaling_lib.humanize_error(0.0)
    assert actual == "utilization within thresholds"
def test_humanize_error_below():
    actual = autoscaling_lib.humanize_error(-1.0)
    assert actual == "100% underutilized"
def test_humanize_error_above():
    actual = autoscaling_lib.humanize_error(1.0)
    assert actual == "100% overutilized"
예제 #4
0
def test_humanize_error_equal():
    actual = autoscaling_lib.humanize_error(0.0)
    assert actual == "utilization within thresholds"
예제 #5
0
def test_humanize_error_below():
    actual = autoscaling_lib.humanize_error(-1.0)
    assert actual == "100% underutilized"
예제 #6
0
def test_humanize_error_above():
    actual = autoscaling_lib.humanize_error(1.0)
    assert actual == "100% overutilized"