'Make sure the message of a previous test gets ignored.'

def test_existing_message_previous_test(self, pyproc):

    pyproc.code = "print('foobar')"
    pyproc.start()
    line = pyproc.wait_for(data='foobar')
    line.waited_for = False
    pyproc.after_test()
    with pytest.raises(testprocess.WaitForTimeout):
        pyproc.wait_for(data='foobar', timeout=100)
