psutil.tests.test_posix

POSIX specific tests.

Module Contents

ps(fmt, pid=None)

Wrapper for calling the ps command with a little bit of cross-platform support for a narrow range of features.

ps_name(pid)
ps_args(pid)
class TestProcess

Bases:psutil.tests.unittest.TestCase

Compare psutil results against ‘ps’ command line utility (mainly).

classmethod setUpClass(cls)
classmethod tearDownClass(cls)
test_ppid(self)
test_uid(self)
test_gid(self)
test_username(self)
test_username_no_resolution(self)
test_rss_memory(self)
test_vsz_memory(self)
test_name(self)
test_name_long(self)
test_name_long_cmdline_ad_exc(self)
test_name_long_cmdline_nsp_exc(self)
test_create_time(self)
test_exe(self)
test_cmdline(self)
test_nice(self)
test_num_fds(self)
class TestSystemAPIs

Bases:psutil.tests.unittest.TestCase

Test some system APIs.

test_pids(self)
test_nic_names(self)
test_users(self)
test_pid_exists_let_raise(self)
test_os_waitpid_let_raise(self)
test_os_waitpid_eintr(self)
test_os_waitpid_bad_ret_status(self)
test_disk_usage(self)