'Test with a message which already passed when waiting.'

@pytest.mark.parametrize('message', ['foobar', 'literal    [x]'])
def test_existing_message(self, message, pyproc):

    pyproc.code = "print('{}')".format(message)
    pyproc.start()
    time.sleep(0.5)
    pyproc.wait_for(data=message)
