def METHOD_NAME(child):
    child.expect_exact('Initializing to stdout.')
    child.expect_exact('Initializing display.')
    child.expect_exact('Drawing on screen.')
    for line in EXPECTED_STDOUT:
        child.expect_exact(line)