def test_history():
 superConsole.SendKeys('outputRedirectStart{(}True{)}{ENTER}')
 testRegex = ''
 superConsole.SendKeys('print "first"{ENTER}')
 testRegex += 'first'
 superConsole.SendKeys('print "second"{ENTER}')
 testRegex += 'second'
 superConsole.SendKeys('print "third"{ENTER}')
 testRegex += 'third'
 superConsole.SendKeys('print "fourth"{ENTER}')
 testRegex += 'fourth'
 superConsole.SendKeys('print "fifth"{ENTER}')
 testRegex += 'fifth'
 superConsole.SendKeys('{UP}{UP}{UP}{ENTER}')
 testRegex += 'third'
 superConsole.SendKeys('{UP}{ENTER}')
 testRegex += 'third'
 superConsole.SendKeys('{UP}{UP}{UP}{DOWN}{ENTER}')
 testRegex += 'second'
 superConsole.SendKeys('{UP}{ENTER}')
 testRegex += 'second'
 superConsole.SendKeys('{DOWN}{ENTER}')
 testRegex += 'third'
 superConsole.SendKeys('{DOWN}{ENTER}')
 testRegex += 'fourth'
 superConsole.SendKeys('{DOWN}{ENTER}')
 testRegex += 'fifth'
 superConsole.SendKeys('{UP}{UP}{ESC}print "sixth"{ENTER}')
 testRegex += 'sixth'
 superConsole.SendKeys('{UP}{ENTER}')
 testRegex += 'sixth'
 superConsole.SendKeys('{UP}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}')
 testRegex += 'sixth'
 superConsole.SendKeys('outputRedirectStop{(}{)}{ENTER}')
 verifyResults(getTestOutput()[0], testRegex)

def test_history ( ) : superConsole . SendKeys ( 'outputRedirectStart{(}True{)}{ENTER}' ) testRegex = '' superConsole . SendKeys ( 'print "first"{ENTER}' ) testRegex += 'first' superConsole . SendKeys ( 'print "second"{ENTER}' ) testRegex += 'second' superConsole . SendKeys ( 'print "third"{ENTER}' ) testRegex += 'third' superConsole . SendKeys ( 'print "fourth"{ENTER}' ) testRegex += 'fourth' superConsole . SendKeys ( 'print "fifth"{ENTER}' ) testRegex += 'fifth' superConsole . SendKeys ( '{UP}{UP}{UP}{ENTER}' ) testRegex += 'third' superConsole . SendKeys ( '{UP}{ENTER}' ) testRegex += 'third' superConsole . SendKeys ( '{UP}{UP}{UP}{DOWN}{ENTER}' ) testRegex += 'second' superConsole . SendKeys ( '{UP}{ENTER}' ) testRegex += 'second' superConsole . SendKeys ( '{DOWN}{ENTER}' ) testRegex += 'third' superConsole . SendKeys ( '{DOWN}{ENTER}' ) testRegex += 'fourth' superConsole . SendKeys ( '{DOWN}{ENTER}' ) testRegex += 'fifth' superConsole . SendKeys ( '{UP}{UP}{ESC}print "sixth"{ENTER}' ) testRegex += 'sixth' superConsole . SendKeys ( '{UP}{ENTER}' ) testRegex += 'sixth' superConsole . SendKeys ( '{UP}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{ENTER}' ) testRegex += 'sixth' superConsole . SendKeys ( 'outputRedirectStop{(}{)}{ENTER}' ) verifyResults ( getTestOutput ( ) [ 0 ] , testRegex )
command history .