#NEWLINE# @ patch ( 'sys.stdin' , new_callable = StringIO ) #NEWLINE# def test_loop_none( self , mock_stdin ) : #NEWLINE# #INDENT# cli = self . _makeit ( Mock ( prefs = cli . prefs ) ) #NEWLINE# cli . cmdloop ( )