def test_nonunique_prefix_completion():
 superConsole.SendKeys('outputRedirectStart{(}{)}{ENTER}')
 testRegex = ''
 superConsole.SendKeys('print y{TAB}{ENTER}')
 superConsole.SendKeys('print y{TAB}{TAB}{ENTER}')
 testRegex += '(yorickyak|yakyorick)'
 superConsole.SendKeys('outputRedirectStop{(}{)}{ENTER}')
 verifyResults(getTestOutput()[0], testRegex)
 AreEqual(removePrompts(getTestOutput()[1]), [])

def test_nonunique_prefix_completion ( ) : superConsole . SendKeys ( 'outputRedirectStart{(}{)}{ENTER}' ) testRegex = '' superConsole . SendKeys ( 'print y{TAB}{ENTER}' ) superConsole . SendKeys ( 'print y{TAB}{TAB}{ENTER}' ) testRegex += '(yorickyak|yakyorick)' superConsole . SendKeys ( 'outputRedirectStop{(}{)}{ENTER}' ) verifyResults ( getTestOutput ( ) [ 0 ] , testRegex ) AreEqual ( removePrompts ( getTestOutput ( ) [ 1 ] ) , [ ] )
ensure that tabbing on a non-unique prefix cycles through the available options .