(self)
| 462 | |
| 463 | @unittest.skipIf(win32_edition() in ('WindowsCoreHeadless', 'IoTEdgeOS'), "APIs not available on WindowsCoreHeadless") |
| 464 | def test_reflection_functions(self): |
| 465 | # Test that we can call the query, enable, and disable functions |
| 466 | # on a key which isn't on the reflection list with no consequences. |
| 467 | with OpenKey(HKEY_LOCAL_MACHINE, "Software") as key: |
| 468 | # HKLM\Software is redirected but not reflected in all OSes |
| 469 | self.assertTrue(QueryReflectionKey(key)) |
| 470 | self.assertIsNone(EnableReflectionKey(key)) |
| 471 | self.assertIsNone(DisableReflectionKey(key)) |
| 472 | self.assertTrue(QueryReflectionKey(key)) |
| 473 | |
| 474 | @unittest.skipUnless(HAS_REFLECTION, "OS doesn't support reflection") |
| 475 | def test_reflection(self): |
nothing calls this directly
no test coverage detected