def METHOD_NAME(self):
    with redirect_stdout(StringIO()):
        with redirect_stderr(StringIO()):
            with assert_warns(DeprecationWarning):
                if os.name == "posix":
                    self.check_posix(use_tee=0)
                    self.check_posix(use_tee=1)
                elif os.name == "nt":
                    self.check_nt(use_tee=0)
                    self.check_nt(use_tee=1)
                self.check_execute_in(use_tee=0)
                self.check_execute_in(use_tee=1)