psutil.tests.test_bsd

Tests specific to all BSD platforms.

Module Contents

PAGESIZE
sysctl(cmdline)

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

muse(field)

Thin wrapper around ‘muse’ cmdline utility.

class BSDSpecificTestCase

Bases:psutil.tests.unittest.TestCase

Generic tests common to all BSD variants.

classmethod setUpClass(cls)
classmethod tearDownClass(cls)
test_process_create_time(self)
test_disks(self)
test_cpu_count_logical(self)
test_virtual_memory_total(self)
test_net_if_stats(self)
class FreeBSDSpecificTestCase

Bases:psutil.tests.unittest.TestCase

classmethod setUpClass(cls)
classmethod tearDownClass(cls)
static parse_swapinfo()
test_proc_memory_maps(self)
test_proc_exe(self)
test_proc_cmdline(self)
test_proc_uids_gids(self)
test_proc_ctx_switches(self)
test_proc_cpu_times(self)
test_cpu_frequency_against_sysctl(self)
test_vmem_active(self)
test_vmem_inactive(self)
test_vmem_wired(self)
test_vmem_cached(self)
test_vmem_free(self)
test_vmem_buffers(self)
test_muse_vmem_total(self)
test_muse_vmem_active(self)
test_muse_vmem_inactive(self)
test_muse_vmem_wired(self)
test_muse_vmem_cached(self)
test_muse_vmem_free(self)
test_muse_vmem_buffers(self)
test_cpu_stats_ctx_switches(self)
test_cpu_stats_interrupts(self)
test_cpu_stats_soft_interrupts(self)
test_cpu_stats_syscalls(self)
test_swapmem_free(self)
test_swapmem_used(self)
test_swapmem_total(self)
test_boot_time(self)
test_sensors_battery(self)
test_sensors_battery_against_sysctl(self)
test_sensors_battery_no_battery(self)
test_sensors_temperatures_against_sysctl(self)
class OpenBSDSpecificTestCase

Bases:psutil.tests.unittest.TestCase

test_boot_time(self)
class NetBSDSpecificTestCase

Bases:psutil.tests.unittest.TestCase

static parse_meminfo(look_for)
test_vmem_total(self)
test_vmem_free(self)
test_vmem_buffers(self)
test_vmem_shared(self)
test_swapmem_total(self)
test_swapmem_free(self)
test_swapmem_used(self)
test_cpu_stats_interrupts(self)
test_cpu_stats_ctx_switches(self)