def assertProcessIsRunning(self, process):
        """
        Assert that a long running process provided Process object as returned by subprocess.Popen
        has succesfuly started and is running.
        """
        if not process:
            raise ValueError("process is None")

        return_code = process.poll()

        if return_code is not None:
            if process.stdout:
                stdout = process.stdout.read()
            else:
                stdout = ""

            if process.stderr:
                stderr = process.stderr.read()
            else:
                stderr = ""

            msg = "Process exited with code=%s.\nStdout:\n%s\n\nStderr:\n%s" % (
                return_code,
                stdout,
                stderr,
            )
            self.fail(msg)

        Assert that a long running process provided Process object as returned by subprocess.Popen
        has succesfuly started and is running.
        
st2tests/st2tests/base.py