def test_filter_mesos_state_metrics(): test_resource_dictionary = { 'cpus': 0, 'mem': 1, 'MEM': 2, 'garbage_data': 3, } expected = { 'cpus': 0, 'mem': 1, } assert metastatus_lib.filter_mesos_state_metrics(test_resource_dictionary) == expected
def test_filter_mesos_state_metrics(): test_resource_dictionary = { "cpus": 0, "mem": 1, "MEM": 2, "garbage_data": 3, "disk": 4, "gpus": 5, } expected = {"cpus": 0, "mem": 1, "disk": 4, "gpus": 5} assert (metastatus_lib.filter_mesos_state_metrics(test_resource_dictionary) == expected)
def test_filter_mesos_state_metrics(): test_resource_dictionary = { 'cpus': 0, 'mem': 1, 'MEM': 2, 'garbage_data': 3, } expected = { 'cpus': 0, 'mem': 1, } assert metastatus_lib.filter_mesos_state_metrics( test_resource_dictionary) == expected
def test_filter_mesos_state_metrics(): test_resource_dictionary = {"cpus": 0, "mem": 1, "MEM": 2, "garbage_data": 3} expected = {"cpus": 0, "mem": 1} assert metastatus_lib.filter_mesos_state_metrics(test_resource_dictionary) == expected