psutil.tests.test_system

Tests for system APIS.

Module Contents

class TestSystemAPIs

Bases:psutil.tests.unittest.TestCase

Tests for system-related APIs.

setUp(self)
tearDown(self)
test_process_iter(self)
test_prcess_iter_w_params(self)
test_wait_procs(self)
test_wait_procs_no_timeout(self)
test_boot_time(self)
test_PAGESIZE(self)
test_virtual_memory(self)
test_swap_memory(self)
test_pid_exists(self)
test_pid_exists_2(self)
test_pids(self)
test_test(self)
test_cpu_count(self)
test_cpu_count_none(self)
test_cpu_times(self)
test_cpu_times_time_increases(self)
test_per_cpu_times(self)
test_per_cpu_times_2(self)
test_cpu_times_comparison(self)
_test_cpu_percent(self, percent, last_ret, new_ret)
test_cpu_percent(self)
test_per_cpu_percent(self)
test_cpu_times_percent(self)
test_per_cpu_times_percent(self)
test_per_cpu_times_percent_negative(self)
test_disk_usage(self)
test_disk_usage_unicode(self)
test_disk_usage_bytes(self)
test_disk_partitions(self)
test_net_io_counters(self)
test_net_io_counters_no_nics(self)
test_net_if_addrs(self)
test_net_if_addrs_mac_null_bytes(self)
test_net_if_stats(self)
test_net_if_stats_enodev(self)
test_disk_io_counters(self)
test_disk_io_counters_no_disks(self)
test_users(self)
test_cpu_stats(self)
test_cpu_freq(self)
test_os_constants(self)
test_sensors_temperatures(self)
test_sensors_temperatures_fahreneit(self)
test_sensors_battery(self)
test_sensors_fans(self)