def test_get_handle_info_stdin(self): _, library = dist.load() stdin_handle = GetStdHandle(library.STD_INPUT_HANDLE) handle_flags = GetHandleInformation(stdin_handle) inherit = handle_flags & library.HANDLE_FLAG_INHERIT expected = (0, library.HANDLE_FLAG_INHERIT) self.assertIn(inherit, expected)
def test_stderr_handle(self): _, library = dist.load() self.assertEqual( GetStdHandle(library.STD_ERROR_HANDLE), HANDLE(library.GetStdHandle(library.STD_ERROR_HANDLE)))
def test_stdout_handle(self): _, library = dist.load() self.assertEqual( GetStdHandle(library.STD_OUTPUT_HANDLE), HANDLE(library.GetStdHandle(library.STD_OUTPUT_HANDLE)))