def test_parse_haproxy_stats(self): with open('tests/haproxy_stats.csv') as f: results = zdd.parse_haproxy_stats(f.read()) assert results[1].pxname == 'http-in' assert results[1].svname == 'IPv4-direct' assert results[2].pxname == 'http-out' assert results[2].svname == 'IPv4-cached'
def _load_listeners(): with open('tests/haproxy_stats.csv') as f: return zdd.parse_haproxy_stats(f.read())