Skip to content

Commit

Permalink
Fix typo in certificate test + add very simple test of windows.system…
Browse files Browse the repository at this point in the history
….modules
  • Loading branch information
hakril committed Aug 2, 2018
1 parent c228a0d commit 19095f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_crypto.py
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion tests/test_system.py
Expand Up @@ -44,6 +44,9 @@ def test_handle_process(self):
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):
Expand All @@ -52,4 +55,7 @@ def test_threads(self):

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

0 comments on commit 19095f0

Please sign in to comment.