Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq Call AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Str orelse Assign NameStore NameLoad orelse Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad BinOpAdd Str NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num orelse If BoolOpOr NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr NameLoad body Break orelse Raise Call NameLoad Str Return Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num keyword AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If NameLoad body Assign NameStore Call NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad BinOpMod Str NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore BinOpMult Call NameLoad NameLoad Num Assign NameStore BinOpMult Call NameLoad NameLoad Num Assign NameStore BinOpMult Call NameLoad NameLoad Num Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list For NameStore Call AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad BinOpMult BinOpMult Num Num Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad BinOpSub AttributeLoad NameLoad attr NameLoad BinOpMult BinOpMult Num Num Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad Call NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num Assign NameStore SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Slice Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad Str keyword Num decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body With Call NameLoad Str Str NameStore body For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Return BinOpMult Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Num Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str Str NameStore body For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Break orelse Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Str Str NameStore body For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Break orelse Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad keyword Num decorator_list decorator_list Call AttributeLoad NameLoad attr NameLoad Str If CompareEq NameLoad Str body Expr Call NameLoad NameLoad
N/A N/A Tests specific to all BSD platforms. N/A datetime N/A os N/A subprocess N/A sys N/A time N/A psutil psutil BSD psutil FREEBSD psutil NETBSD psutil OPENBSD psutil._compat PY3 psutil.tests get_test_subprocess psutil.tests MEMORY_TOLERANCE psutil.tests reap_children psutil.tests retry_before_failing psutil.tests run_test_module_by_name psutil.tests sh psutil.tests unittest psutil.tests which N/A BSD N/A N/A PAGESIZE N/A N/A os sysconf SC_PAGE_SIZE N/A N/A N/A N/A os getuid 0 N/A N/A MUSE_AVAILABLE N/A which muse N/A N/A MUSE_AVAILABLE False N/A N/A MUSE_AVAILABLE False sysctl N/A N/A cmdline N/A N/A N/A Expects a sysctl command with an argument and parse the result
    returning only the value of interest.
     N/A result N/A sh N/A sysctl  cmdline N/A FREEBSD N/A N/A result N/A result N/A N/A N/A N/A result find :  2 N/A N/A N/A OPENBSD NETBSD N/A N/A result N/A result N/A N/A N/A N/A result find = 1 N/A N/A N/A N/A int result N/A N/A N/A ValueError N/A N/A result N/A muse N/A N/A field N/A N/A N/A Thin wrapper around 'muse' cmdline utility. N/A out N/A sh muse N/A line N/A N/A out split N/A N/A N/A N/A line startswith field N/A N/A N/A N/A N/A ValueError line not found N/A N/A int N/A N/A N/A line split N/A 1 N/A BSDSpecificTestCase N/A N/A unittest TestCase N/A N/A Generic tests common to all BSD variants. setUpClass N/A N/A cls N/A N/A N/A N/A cls pid N/A N/A get_test_subprocess pid N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A reap_children N/A classmethod test_process_create_time N/A N/A self N/A N/A N/A cmdline N/A ps -o lstart -p %s N/A self pid N/A p N/A N/A subprocess Popen cmdline shell 1 stdout N/A subprocess PIPE N/A output N/A N/A N/A p communicate N/A 0 N/A PY3 N/A N/A output N/A str output N/A N/A sys stdout encoding N/A start_ps N/A N/A N/A N/A output replace STARTED strip N/A start_psutil N/A N/A N/A N/A psutil Process N/A self pid create_time N/A start_psutil N/A N/A time strftime %a %b %e %H:%M:%S %Y N/A N/A time localtime start_psutil N/A N/A N/A self assertEqual start_ps start_psutil N/A test_disks N/A N/A self N/A N/A df N/A N/A path N/A N/A N/A out N/A N/A N/A sh N/A df -k "%s" path strip N/A lines N/A N/A out split N/A N/A N/A lines pop 0 N/A line N/A N/A lines pop 0 N/A N/A dev total used free N/A N/A N/A line split N/A 4 N/A N/A dev none N/A N/A dev N/A total N/A N/A int total 1024 N/A used N/A N/A int used 1024 N/A free N/A N/A int free 1024 N/A N/A dev total used free N/A N/A part N/A N/A psutil disk_partitions all False N/A N/A usage N/A N/A psutil disk_usage N/A part mountpoint N/A N/A dev total used free N/A df N/A part mountpoint N/A N/A N/A self assertEqual N/A part device dev N/A N/A N/A self assertEqual N/A usage total total N/A N/A N/A abs N/A N/A usage free free N/A N/A 10 1024 1024 N/A N/A N/A N/A self fail N/A psutil=%s, df=%s N/A N/A usage free free N/A N/A N/A abs N/A N/A usage used used N/A N/A 10 1024 1024 N/A N/A N/A N/A self fail N/A psutil=%s, df=%s N/A N/A usage used used N/A test_cpu_count_logical N/A N/A self N/A N/A N/A syst N/A sysctl hw.ncpu N/A N/A N/A self assertEqual N/A N/A psutil cpu_count logical True syst N/A test_virtual_memory_total N/A N/A self N/A N/A N/A num N/A sysctl hw.physmem N/A N/A N/A self assertEqual num N/A N/A N/A psutil virtual_memory total N/A N/A N/A N/A unittest skipUnless BSD not a BSD system FreeBSDSpecificTestCase N/A N/A unittest TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls pid N/A N/A get_test_subprocess pid N/A classmethod tearDownClass N/A N/A cls N/A N/A N/A N/A reap_children N/A classmethod test_boot_time N/A N/A self N/A N/A N/A s N/A sysctl sysctl kern.boottime N/A s N/A s N/A N/A N/A N/A s find  sec =  7 N/A s N/A s N/A N/A N/A s find , N/A btime N/A int s N/A N/A N/A self assertEqual btime N/A N/A psutil boot_time N/A test_memory_maps N/A N/A self N/A N/A N/A out N/A sh N/A procstat -v %s N/A self pid N/A maps N/A N/A N/A N/A psutil Process N/A self pid memory_maps grouped False N/A lines N/A N/A N/A out split N/A 1 N/A lines N/A N/A line N/A N/A lines pop N/A fields N/A N/A line split N/A N/A _ start stop perms res N/A fields N/A 5 N/A map N/A N/A maps pop N/A N/A N/A self assertEqual N/A %s-%s N/A start stop N/A map addr N/A N/A N/A self assertEqual N/A int res N/A map rss N/A N/A N/A N/A N/A map path startswith [ N/A N/A N/A N/A self assertEqual N/A fields N/A 10 N/A map path N/A N/A retry_before_failing test_exe N/A N/A self N/A N/A N/A out N/A sh N/A procstat -b %s N/A self pid N/A N/A N/A self assertEqual N/A N/A N/A N/A psutil Process N/A self pid exe N/A N/A N/A N/A N/A N/A out split N/A 1 split N/A -1 N/A test_cmdline N/A N/A self N/A N/A N/A out N/A sh N/A procstat -c %s N/A self pid N/A N/A N/A self assertEqual N/A N/A join N/A N/A N/A N/A psutil Process N/A self pid cmdline N/A N/A join N/A N/A N/A N/A N/A N/A out split N/A 1 split N/A 2 N/A test_uids_gids N/A N/A self N/A N/A N/A out N/A sh N/A procstat -s %s N/A self pid N/A N/A euid ruid suid egid rgid sgid N/A N/A N/A N/A N/A N/A out split N/A 1 split N/A 2 8 N/A p N/A N/A psutil Process N/A self pid N/A uids N/A N/A p uids N/A gids N/A N/A p gids N/A N/A N/A self assertEqual N/A uids real N/A int ruid N/A N/A N/A self assertEqual N/A uids effective N/A int euid N/A N/A N/A self assertEqual N/A uids saved N/A int suid N/A N/A N/A self assertEqual N/A gids real N/A int rgid N/A N/A N/A self assertEqual N/A gids effective N/A int egid N/A N/A N/A self assertEqual N/A gids saved N/A int sgid N/A test_vmem_active N/A N/A self N/A N/A N/A syst N/A N/A sysctl vm.stats.vm.v_active_count PAGESIZE N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory active syst delta MEMORY_TOLERANCE N/A N/A retry_before_failing test_vmem_inactive N/A N/A self N/A N/A N/A syst N/A N/A sysctl vm.stats.vm.v_inactive_count PAGESIZE N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory inactive syst delta MEMORY_TOLERANCE N/A N/A retry_before_failing test_vmem_wired N/A N/A self N/A N/A N/A syst N/A N/A sysctl vm.stats.vm.v_wire_count PAGESIZE N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory wired syst delta MEMORY_TOLERANCE N/A N/A retry_before_failing test_vmem_cached N/A N/A self N/A N/A N/A syst N/A N/A sysctl vm.stats.vm.v_cache_count PAGESIZE N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory cached syst delta MEMORY_TOLERANCE N/A N/A retry_before_failing test_vmem_free N/A N/A self N/A N/A N/A syst N/A N/A sysctl vm.stats.vm.v_free_count PAGESIZE N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory free syst delta MEMORY_TOLERANCE N/A N/A retry_before_failing test_vmem_buffers N/A N/A self N/A N/A N/A syst N/A sysctl vfs.bufspace N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory buffers syst delta MEMORY_TOLERANCE N/A N/A retry_before_failing test_muse_vmem_total N/A N/A self N/A N/A N/A num N/A muse Total N/A N/A N/A self assertEqual N/A N/A N/A psutil virtual_memory total num N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available test_muse_vmem_active N/A N/A self N/A N/A N/A num N/A muse Active N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory active num delta MEMORY_TOLERANCE N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available N/A retry_before_failing test_muse_vmem_inactive N/A N/A self N/A N/A N/A num N/A muse Inactive N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory inactive num delta MEMORY_TOLERANCE N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available N/A retry_before_failing test_muse_vmem_wired N/A N/A self N/A N/A N/A num N/A muse Wired N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory wired num delta MEMORY_TOLERANCE N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available N/A retry_before_failing test_muse_vmem_cached N/A N/A self N/A N/A N/A num N/A muse Cache N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory cached num delta MEMORY_TOLERANCE N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available N/A retry_before_failing test_muse_vmem_free N/A N/A self N/A N/A N/A num N/A muse Free N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory free num delta MEMORY_TOLERANCE N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available N/A retry_before_failing test_muse_vmem_buffers N/A N/A self N/A N/A N/A num N/A muse Buffer N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil virtual_memory buffers num delta MEMORY_TOLERANCE N/A N/A N/A unittest skipUnless MUSE_AVAILABLE muse cmdline tool is not available N/A retry_before_failing test_cpu_stats_ctx_switches N/A N/A self N/A N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil cpu_stats ctx_switches N/A sysctl vm.stats.sys.v_swtch delta 1000 N/A test_cpu_stats_interrupts N/A N/A self N/A N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil cpu_stats interrupts N/A sysctl vm.stats.sys.v_intr delta 1000 N/A test_cpu_stats_soft_interrupts N/A N/A self N/A N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil cpu_stats soft_interrupts N/A sysctl vm.stats.sys.v_soft delta 1000 N/A test_cpu_stats_syscalls N/A N/A self N/A N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil cpu_stats syscalls N/A sysctl vm.stats.sys.v_syscall delta 1000 N/A N/A N/A N/A unittest skipUnless FREEBSD not a FreeBSD system OpenBSDSpecificTestCase N/A N/A unittest TestCase N/A test_boot_time N/A N/A self N/A N/A N/A s N/A sysctl kern.boottime N/A sys_bt N/A N/A N/A datetime datetime strptime s %a %b %d %H:%M:%S %Y N/A psutil_bt N/A N/A N/A datetime datetime fromtimestamp N/A N/A psutil boot_time N/A N/A N/A self assertEqual sys_bt psutil_bt N/A N/A N/A N/A unittest skipUnless OPENBSD not an OpenBSD system NetBSDSpecificTestCase N/A N/A unittest TestCase N/A parse_meminfo N/A N/A self look_for N/A N/A N/A N/A open /proc/meminfo rb f N/A N/A line f N/A N/A N/A N/A line startswith look_for N/A N/A N/A N/A int N/A N/A N/A line split N/A 1 1024 N/A N/A ValueError N/A can't find %s look_for N/A test_vmem_buffers N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A psutil virtual_memory buffers N/A N/A self parse_meminfo Buffers: N/A test_vmem_shared N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A psutil virtual_memory shared N/A N/A self parse_meminfo MemShared: N/A test_swapmem_total N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A psutil swap_memory total N/A N/A self parse_meminfo SwapTotal: N/A test_swapmem_free N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A psutil swap_memory free N/A N/A self parse_meminfo SwapFree: N/A test_cpu_stats_interrupts N/A N/A self N/A N/A N/A N/A open /proc/stat rb f N/A N/A line f N/A N/A N/A N/A line startswith intr N/A N/A interrupts N/A int N/A N/A N/A line split N/A 1 N/A N/A N/A N/A ValueError couldn't find line N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil cpu_stats interrupts interrupts delta 1000 N/A test_cpu_stats_ctx_switches N/A N/A self N/A N/A N/A N/A open /proc/stat rb f N/A N/A line f N/A N/A N/A N/A line startswith ctxt N/A N/A ctx_switches N/A int N/A N/A N/A line split N/A 1 N/A N/A N/A N/A ValueError couldn't find line N/A N/A N/A self assertAlmostEqual N/A N/A N/A psutil cpu_stats ctx_switches ctx_switches delta 1000 N/A N/A N/A N/A unittest skipUnless NETBSD not a NetBSD system N/A N/A __name__ __main__ N/A N/A N/A run_test_module_by_name __file__