'Using wait_for with the expected text.'

def test_successful(self, pyproc):

    pyproc.code = "time.sleep(0.5);    print('foobar')"
    with stopwatch(min_ms=500):
        pyproc.start()
        pyproc.wait_for(data='foobar')
