@then(u'pgcli exits')
def step_wait_exit(context):
 _expect_exact(context, pexpect.EOF, timeout=5)

@ then ( u'pgcli exits' ) def step_wait_exit ( context ) : _expect_exact ( context , pexpect . EOF , timeout = 5 )
make sure the cli exits .