

def test_stats_get_utilization(parent=PARENT, hosts=HOSTS):
    '\n    Make sure that getting network utilization stats is accurate.\n    '
    expected = '10.47.216.0/22 - 14% used (139), 86% free (885)'
    output = stats.calculate_network_utilization(parent, hosts, as_string=True)
    assert (output == expected)

dataset/ETHPy150Open dropbox/nsot/tests/api_tests/test_util.py test_stats_get_utilization/original