# Path: px/px_ioload.py
# NETSTAT_IB_LINE_RE = re.compile(
#     r"^([^ ]+).*[0-9]+ +([0-9]+) +[0-9]+ +[0-9]+ +([0-9]+) +[0-9]+$"
# )
# PROC_NET_DEV_RE = re.compile(
#     r"^ *([^:]+): +([0-9]+) +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +([0-9]+)[0-9 ]+$"
# )
# PROC_DISKSTATS_RE = re.compile(
#     r"^ *[0-9]+ +[0-9]+ ([a-z]+[0-9]+) [0-9]+ [0-9]+ ([0-9]+) [0-9]+ [0-9]+ [0-9]+ ([0-9]+) .*"
# )
# def parse_netstat_ib_output(netstat_ib_output):
# def parse_iostat_output(iostat_output):
# def parse_proc_net_dev(proc_net_dev_contents):
# def parse_proc_diskstats(proc_diskstats_contents):
#     def __init__(self, name, bytecount):
#     def __repr__(self):
#     def __eq__(self, o):
#     def __init__(self, throughput, high_watermark):
#     def __init__(self):
#     def sample_network_interfaces(self):
#     def sample_drives(self):
#     def __init__(self):
#     def update_baseline_from_system(self, system_state):
#     def update(self):
#     def get_load_string(self):
# def update():
# def get_load_string():
# class Sample(object):
# class SubsystemStat(object):
# class SystemState(object):
# class PxIoLoad(object):


from . import testutils
from px import px_ioload
    from six import text_type
import sys
# -*- coding: utf-8 -*-




if sys.version_info.major >= 3:
    # For mypy PEP-484 static typing validation


def test_parse_netstat_ib_output():
    sample_netstat_ib_output = testutils.load("netstat-ib.txt")

    expected = [
        px_ioload.Sample("lo0 incoming", 903920),
        px_ioload.Sample("lo0 outgoing", 903920),

# Path: px/px_ioload.py
# NETSTAT_IB_LINE_RE = re.compile(
#     r"^([^ ]+).*[0-9]+ +([0-9]+) +[0-9]+ +[0-9]+ +([0-9]+) +[0-9]+$"
# )
# PROC_NET_DEV_RE = re.compile(
#     r"^ *([^:]+): +([0-9]+) +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+ +([0-9]+)[0-9 ]+$"
# )
# PROC_DISKSTATS_RE = re.compile(
#     r"^ *[0-9]+ +[0-9]+ ([a-z]+[0-9]+) [0-9]+ [0-9]+ ([0-9]+) [0-9]+ [0-9]+ [0-9]+ ([0-9]+) .*"
# )
# def parse_netstat_ib_output(netstat_ib_output):
# def parse_iostat_output(iostat_output):
# def parse_proc_net_dev(proc_net_dev_contents):
# def parse_proc_diskstats(proc_diskstats_contents):
#     def __init__(self, name, bytecount):
#     def __repr__(self):
#     def __eq__(self, o):
#     def __init__(self, throughput, high_watermark):
#     def __init__(self):
#     def sample_network_interfaces(self):
#     def sample_drives(self):
#     def __init__(self):
#     def update_baseline_from_system(self, system_state):
#     def update(self):
#     def get_load_string(self):
# def update():
# def get_load_string():
# class Sample(object):
# class SubsystemStat(object):
# class SystemState(object):
# class PxIoLoad(object):


# Path: tests/px_ioload_test.py
from . import testutils
from px import px_ioload
    from six import text_type
import sys

# -*- coding: utf-8 -*-




if sys.version_info.major >= 3:
    # For mypy PEP-484 static typing validation


def test_parse_netstat_ib_output():
    sample_netstat_ib_output = testutils.load("netstat-ib.txt")

    expected = [
        px_ioload.Sample("lo0 incoming", 903920),
        px_ioload.Sample("lo0 outgoing", 903920),

        px_ioload.Sample("en0 incoming", 1410907682),