Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
psutil /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-10-28 07:20
__init__.py
57.42
KB
-rw-r--r--
2022-11-07 19:55
__main__.py
293
B
-rw-r--r--
2022-11-07 19:55
runner.py
10.94
KB
-rw-r--r--
2022-11-07 19:55
test_aix.py
4.4
KB
-rw-r--r--
2022-11-07 19:55
test_bsd.py
20.2
KB
-rw-r--r--
2022-11-07 19:55
test_connections.py
20.86
KB
-rw-r--r--
2022-11-07 19:55
test_contracts.py
27.01
KB
-rw-r--r--
2022-11-07 19:55
test_linux.py
92.25
KB
-rw-r--r--
2022-11-07 19:55
test_memleaks.py
14.68
KB
-rw-r--r--
2022-11-07 19:55
test_misc.py
30.73
KB
-rw-r--r--
2022-11-07 19:55
test_osx.py
7.58
KB
-rw-r--r--
2022-11-07 19:55
test_posix.py
15.13
KB
-rw-r--r--
2022-11-07 19:55
test_process.py
60.37
KB
-rw-r--r--
2022-11-07 19:55
test_sunos.py
1.3
KB
-rw-r--r--
2022-11-07 19:55
test_system.py
35.08
KB
-rw-r--r--
2022-11-07 19:55
test_testutils.py
14.09
KB
-rw-r--r--
2022-11-07 19:55
test_unicode.py
12.15
KB
-rw-r--r--
2022-11-07 19:55
test_windows.py
33.29
KB
-rw-r--r--
2022-11-07 19:55
Save
Rename
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Sun OS specific tests.""" import os import unittest import psutil from psutil import SUNOS from psutil.tests import PsutilTestCase from psutil.tests import sh @unittest.skipIf(not SUNOS, "SUNOS only") class SunOSSpecificTestCase(PsutilTestCase): def test_swap_memory(self): out = sh('env PATH=/usr/sbin:/sbin:%s swap -l' % os.environ['PATH']) lines = out.strip().split('\n')[1:] if not lines: raise ValueError('no swap device(s) configured') total = free = 0 for line in lines: line = line.split() t, f = line[-2:] total += int(int(t) * 512) free += int(int(f) * 512) used = total - free psutil_swap = psutil.swap_memory() self.assertEqual(psutil_swap.total, total) self.assertEqual(psutil_swap.used, used) self.assertEqual(psutil_swap.free, free) def test_cpu_count(self): out = sh("/usr/sbin/psrinfo") self.assertEqual(psutil.cpu_count(), len(out.split('\n'))) if __name__ == '__main__': from psutil.tests.runner import run_from_name run_from_name(__file__)