Fix typo in certificate test + add very simple test of windows.system.modules

This commit is contained in:
hakril
2018-08-02 18:52:35 +02:00
parent c228a0d5cb
commit 19095f0e2f
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -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
+7 -1
View File
@@ -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