mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Fix typo in certificate test + add very simple test of windows.system.modules
This commit is contained in:
@@ -116,7 +116,7 @@ def test_certificate(rawcert):
|
||||
assert cert.serial == '1b 8e 94 cb 0b 3e eb b6 41 39 f3 c9 09 b1 6b 46'
|
||||
assert cert.name == 'PythonForWindowsTest'
|
||||
assert cert.issuer == 'PythonForWindowsTest'
|
||||
assert cert.thumprint == 'EF 0C A8 C9 F9 E0 96 AF 74 18 56 8B C1 C9 57 27 A0 89 29 6A'
|
||||
assert cert.thumbprint == 'EF 0C A8 C9 F9 E0 96 AF 74 18 56 8B C1 C9 57 27 A0 89 29 6A'
|
||||
assert cert.encoded == rawcert
|
||||
assert cert.version == 2
|
||||
assert cert == cert
|
||||
|
||||
@@ -44,6 +44,9 @@ class TestSystemWithCheckGarbage(object):
|
||||
proc = handle.process
|
||||
assert proc.pid == handle.dwProcessId
|
||||
|
||||
def test_system_modules_ntosk(self):
|
||||
assert windows.system.modules[0].name.endswith("ntoskrnl.exe")
|
||||
|
||||
|
||||
@check_for_gc_garbage
|
||||
class TestSystemWithCheckGarbageAndHandleLeak(object):
|
||||
@@ -52,4 +55,7 @@ class TestSystemWithCheckGarbageAndHandleLeak(object):
|
||||
|
||||
def test_processes(self):
|
||||
procs = windows.system.processes
|
||||
assert windows.current_process.pid in [p.pid for p in procs]
|
||||
assert windows.current_process.pid in [p.pid for p in procs]
|
||||
|
||||
def test_system_modules(self):
|
||||
return windows.system.modules
|
||||
Reference in New Issue
Block a user