psutil.tests.test_osx

MACOS specific tests.

Module Contents

PAGESIZE
sysctl(cmdline)

Expects a sysctl command with an argument and parse the result returning only the value of interest.

vm_stat(field)

Wrapper around ‘vm_stat’ cmdline utility.

human2bytes(s)
class TestProcess

Bases:psutil.tests.unittest.TestCase

classmethod setUpClass(cls)
classmethod tearDownClass(cls)
test_process_create_time(self)
class TestZombieProcessAPIs

Bases:psutil.tests.unittest.TestCase

classmethod setUpClass(cls)
classmethod tearDownClass(cls)
test_pidtask_info(self)
test_exe(self)
test_cmdline(self)
test_environ(self)
test_cwd(self)
test_memory_full_info(self)
test_cpu_times(self)
test_num_ctx_switches(self)
test_num_threads(self)
test_open_files(self)
test_connections(self)
test_num_fds(self)
test_threads(self)
class TestSystemAPIs

Bases:psutil.tests.unittest.TestCase

test_disks(self)
test_cpu_count_logical(self)
test_cpu_count_physical(self)
test_cpu_freq(self)
test_vmem_total(self)
test_vmem_free(self)
test_vmem_active(self)
test_vmem_inactive(self)
test_vmem_wired(self)
test_swapmem_sin(self)
test_swapmem_sout(self)
test_net_if_stats(self)
test_sensors_battery(self)