def test_member_completion():
 superConsole.SendKeys('outputRedirectStart{(}True{)}{ENTER}')
 testRegex = ''
 superConsole.SendKeys('print c.{TAB}{ENTER}')
 testRegex += '(Cdoc|pretest)'
 superConsole.SendKeys('try:{ENTER}')
 superConsole.SendKeys('print f.{TAB}x{ENTER}')
 superConsole.SendKeys('{BACKSPACE}except:{ENTER}')
 superConsole.SendKeys('print "EXC"{ENTER}{ENTER}{ENTER}')
 testRegex += 'EXC'
 superConsole.SendKeys('outputRedirectStop{(}{)}{ENTER}')
 verifyResults(getTestOutput()[0], testRegex)

def test_member_completion ( ) : superConsole . SendKeys ( 'outputRedirectStart{(}True{)}{ENTER}' ) testRegex = '' superConsole . SendKeys ( 'print c.{TAB}{ENTER}' ) testRegex += '(Cdoc|pretest)' superConsole . SendKeys ( 'try:{ENTER}' ) superConsole . SendKeys ( 'print f.{TAB}x{ENTER}' ) superConsole . SendKeys ( '{BACKSPACE}except:{ENTER}' ) superConsole . SendKeys ( 'print "EXC"{ENTER}{ENTER}{ENTER}' ) testRegex += 'EXC' superConsole . SendKeys ( 'outputRedirectStop{(}{)}{ENTER}' ) verifyResults ( getTestOutput ( ) [ 0 ] , testRegex )
ensure that tabbing after ident .