Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python3.6 /
site-packages /
psutil /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2021-09-16 10:31
__init__.py
34.28
KB
-rw-r--r--
2019-11-26 02:25
__main__.py
2.65
KB
-rw-r--r--
2019-11-26 02:25
runner.py
5.61
KB
-rw-r--r--
2019-11-26 02:25
test_aix.py
4.36
KB
-rw-r--r--
2019-11-26 02:25
test_bsd.py
20.1
KB
-rw-r--r--
2019-11-26 02:25
test_connections.py
24.46
KB
-rw-r--r--
2019-11-26 02:25
test_contracts.py
23.15
KB
-rw-r--r--
2019-11-26 02:25
test_linux.py
86.29
KB
-rw-r--r--
2019-11-26 02:25
test_memory_leaks.py
17.94
KB
-rw-r--r--
2019-11-26 02:25
test_misc.py
37.84
KB
-rw-r--r--
2019-11-26 02:25
test_osx.py
9.04
KB
-rw-r--r--
2019-11-26 02:25
test_posix.py
16.17
KB
-rw-r--r--
2019-11-26 02:25
test_process.py
61.87
KB
-rw-r--r--
2019-11-26 02:25
test_sunos.py
1.26
KB
-rw-r--r--
2019-11-26 02:25
test_system.py
34.71
KB
-rw-r--r--
2019-11-26 02:25
test_unicode.py
12.78
KB
-rw-r--r--
2019-11-26 02:25
test_windows.py
33.47
KB
-rw-r--r--
2019-11-26 02:25
Save
Rename
#!/usr/bin/env python # 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 psutil from psutil import SUNOS from psutil.tests import sh from psutil.tests import unittest @unittest.skipIf(not SUNOS, "SUNOS only") class SunOSSpecificTestCase(unittest.TestCase): 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 run(__file__)