MCPcopy Index your code
hub / github.com/python/cpython / test_wmi_exec_query

Method test_wmi_exec_query

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

Source from the content-addressed store, hash-verified

228
229
230 def test_wmi_exec_query(self):
231 import_helper.import_module("_wmi")
232 returncode, events, stderr = self.run_python("test_wmi_exec_query")
233 if returncode:
234 self.fail(stderr)
235
236 if support.verbose:
237 print(*events, sep='\n')
238 actual = [(ev[0], ev[2]) for ev in events]
239 expected = [("_wmi.exec_query", "SELECT * FROM Win32_OperatingSystem")]
240
241 self.assertEqual(actual, expected)
242
243 def test_syslog(self):
244 syslog = import_helper.import_module("syslog")

Callers

nothing calls this directly

Calls 4

run_pythonMethod · 0.95
import_moduleMethod · 0.45
failMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected