def test_cursor_keys():
 superConsole.SendKeys('outputRedirectStart{(}True{)}{ENTER}')
 testRegex = ''
 superConsole.SendKeys("print 'up'{ENTER}")
 testRegex += 'up'
 superConsole.SendKeys("print 'down'{ENTER}")
 testRegex += 'down'
 superConsole.SendKeys('{UP}{UP}{ENTER}')
 testRegex += 'up'
 superConsole.SendKeys('{DOWN}{ENTER}')
 testRegex += 'down'
 superConsole.SendKeys("print 'up'{ENTER}{UP}{ENTER}")
 testRegex += 'upup'
 superConsole.SendKeys("print 'awy{LEFT}{LEFT}{RIGHT}a{RIGHT}'{ENTER}")
 testRegex += 'away'
 superConsole.SendKeys("print 'bad'{ESC}print 'good'{ENTER}")
 testRegex += 'good'
 superConsole.SendKeys("rint 'hom'{HOME}p{END}{LEFT}e{ENTER}")
 testRegex += 'home'
 superConsole.SendKeys('outputRedirectStop{(}{)}{ENTER}')
 verifyResults(getTestOutput()[0], testRegex)

def test_cursor_keys ( ) : superConsole . SendKeys ( 'outputRedirectStart{(}True{)}{ENTER}' ) testRegex = '' superConsole . SendKeys ( "print 'up'{ENTER}" ) testRegex += 'up' superConsole . SendKeys ( "print 'down'{ENTER}" ) testRegex += 'down' superConsole . SendKeys ( '{UP}{UP}{ENTER}' ) testRegex += 'up' superConsole . SendKeys ( '{DOWN}{ENTER}' ) testRegex += 'down' superConsole . SendKeys ( "print 'up'{ENTER}{UP}{ENTER}" ) testRegex += 'upup' superConsole . SendKeys ( "print 'awy{LEFT}{LEFT}{RIGHT}a{RIGHT}'{ENTER}" ) testRegex += 'away' superConsole . SendKeys ( "print 'bad'{ESC}print 'good'{ENTER}" ) testRegex += 'good' superConsole . SendKeys ( "rint 'hom'{HOME}p{END}{LEFT}e{ENTER}" ) testRegex += 'home' superConsole . SendKeys ( 'outputRedirectStop{(}{)}{ENTER}' ) verifyResults ( getTestOutput ( ) [ 0 ] , testRegex )
cursor keys .