MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_wmi_exec_query

Method test_wmi_exec_query

Lib/test/test_audit.py:221–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219
220
221 def test_wmi_exec_query(self):
222 import_helper.import_module("_wmi")
223 returncode, events, stderr = self.run_python("test_wmi_exec_query")
224 if returncode:
225 self.fail(stderr)
226
227 if support.verbose:
228 print(*events, sep='\n')
229 actual = [(ev[0], ev[2]) for ev in events]
230 expected = [("_wmi.exec_query", "SELECT * FROM Win32_OperatingSystem")]
231
232 self.assertEqual(actual, expected)
233
234 def test_syslog(self):
235 syslog = import_helper.import_module("syslog")

Callers

nothing calls this directly

Calls 5

run_pythonMethod · 0.95
printFunction · 0.50
import_moduleMethod · 0.45
failMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected