#NEWLINE# def test_clean_invalid_task( self , tasks ) : #NEWLINE# #INDENT# output = StringIO ( ) #NEWLINE# cmd_clean = CmdFactory ( Clean , outstream = cmd_clean , task_list = tasks , sel_tasks = [ 't1' ] ) #NEWLINE# pytest . raises ( InvalidCommand , cmd_clean . _execute , False , False , False , [ 'xxxx' ] )