__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import contextlib
import errno
import uuid
import pytest
from systemd import id128
@contextlib.contextmanager
def skip_oserror(code):
try:
yield
except (OSError, IOError) as e:
if e.errno == code:
pytest.skip()
raise
def test_randomize():
u1 = id128.randomize()
u2 = id128.randomize()
assert u1 != u2
def test_get_machine():
u1 = id128.get_machine()
u2 = id128.get_machine()
assert u1 == u2
def test_get_machine_app_specific():
a1 = uuid.uuid1()
a2 = uuid.uuid1()
with skip_oserror(errno.ENOSYS):
u1 = id128.get_machine_app_specific(a1)
u2 = id128.get_machine_app_specific(a2)
u3 = id128.get_machine_app_specific(a1)
u4 = id128.get_machine_app_specific(a2)
assert u1 != u2
assert u1 == u3
assert u2 == u4
def test_get_boot():
u1 = id128.get_boot()
u2 = id128.get_boot()
assert u1 == u2
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| test_daemon.py | File | 11.83 KB | 0644 |
|
| test_id128.py | File | 920 B | 0644 |
|
| test_journal.py | File | 10.85 KB | 0644 |
|
| test_login.py | File | 1.07 KB | 0644 |
|