code: def reject(self, timeout=1):
          
          log(_("checking that input was rejected..."))
          try:
              self._wait(timeout)
          except Failure as e:
              if not isinstance(e.__cause__, TIMEOUT):
                  raise
          else:
              raise Failure(_("expected program to reject input, but it did not"))
          return self
docs: Check that the process survives for timeout. Useful for checking whether program is waiting on input.
  
          :param timeout: number of seconds to wait
          :type timeout: int / float
          :raises check50.Failure: if process ends before ``timeout``