<gh_stars>1-10
from amonlite.system.runner import runner
import sys

class TestRunner(object):

    def test_system_run(self):
        system_test = runner.system()

        assert isinstance(system_test, dict)
        if sys.platform != 'darwin':
            assert 'network' in system_test
        assert 'memory' in system_test
        assert 'cpu' in system_test
        assert 'disk' in system_test
        assert 'loadavg' in system_test

    def test_system_empty(self):
        empty = runner.empty()
        if sys.platform != 'darwin':
            assert 'network' in empty
        assert 'memory' in empty
        assert 'cpu' in empty
        assert 'disk' in empty
        assert 'loadavg' in empty

    def test_process_run(self):
        processes = runner.processes()
        assert isinstance(processes, dict)
        for process in processes:
            process_dict = processes[process]
            
            assert 'time' in process_dict
            assert 'memory' in process_dict
            assert 'cpu' in process_dict



from amonlite.system.runner import runner
import sys

class TestRunner(object):

    def test_system_run(self):
        system_test = runner.system()

        assert isinstance(system_test, dict)
        if sys.platform != 'darwin':
            assert 'network' in system_test
        assert 'memory' in system_test
        assert 'cpu' in system_test
        assert 'disk' in system_test
        assert 'loadavg' in system_test

    def test_system_empty(self):
        empty = runner.empty()
        if sys.platform != 'darwin':
            assert 'network' in empty
        assert 'memory' in empty
        assert 'cpu' in empty
        assert 'disk' in empty
        assert 'loadavg' in empty

    def test_process_run(self):
        processes = runner.processes()
        assert isinstance(processes, dict)
        for process in processes:
            process_dict = processes[process]
            
            assert 'time' in process_dict
            assert 'memory' in process_dict
            assert 'cpu' in process_dict