#NEWLINE# @ mock . patch ( 'rally.api.Task.get' ) #NEWLINE# def test_file_exporter_export_running_task( self , mock_task_get ) : #NEWLINE# #INDENT# mock_task = mock . Mock ( ) #NEWLINE# mock_task_get . return_value = mock_task #NEWLINE# mock_task . get_results . return_value = [ ] #NEWLINE# exporter = file_system . FileExporter ( 'file-exporter:///fake_path.json' ) #NEWLINE# self . assertRaises ( exceptions . RallyException , exporter . export , 'fake_uuid' )