def test_backspace_and_delete():
 superConsole.SendKeys('outputRedirectStart{(}True{)}{ENTER}')
 testRegex = ''
 superConsole.SendKeys("print 'IQ{BACKSPACE}P'{ENTER}")
 testRegex += 'IP'
 superConsole.SendKeys("print 'FW'{LEFT}{LEFT}{DELETE}X{ENTER}")
 testRegex += 'FX'
 superConsole.SendKeys('outputRedirectStop{(}{)}{ENTER}')
 verifyResults(getTestOutput()[0], testRegex)

def test_backspace_and_delete ( ) : superConsole . SendKeys ( 'outputRedirectStart{(}True{)}{ENTER}' ) testRegex = '' superConsole . SendKeys ( "print 'IQ{BACKSPACE}P'{ENTER}" ) testRegex += 'IP' superConsole . SendKeys ( "print 'FW'{LEFT}{LEFT}{DELETE}X{ENTER}" ) testRegex += 'FX' superConsole . SendKeys ( 'outputRedirectStop{(}{)}{ENTER}' ) verifyResults ( getTestOutput ( ) [ 0 ] , testRegex )
backspace and delete .