#NEWLINE# def test_tool_name_in_pipelines_with_multiplexing_and_custom_name( ) : #NEWLINE# #INDENT# @ jip . tool ( ) #NEWLINE# class MyTool ( ) : #NEWLINE# #INDENT# 'mytool\n        usage:\n            mytool <data>\n        ' #NEWLINE# def validate( self ) : #NEWLINE# #INDENT# self . job . name = 'somename' #NEWLINE# #UNINDENT# def get_command( self ) : #NEWLINE# #INDENT# return 'echo' #NEWLINE# #UNINDENT# #UNINDENT# @ jip . pipeline ( ) #NEWLINE# class MyPipeline ( ) : #NEWLINE# #INDENT# def validate( self ) : #NEWLINE# #INDENT# self . name ( 'thepipeline' ) #NEWLINE# #UNINDENT# def pipeline( self ) : #NEWLINE# #INDENT# p = jip . Pipeline ( ) #NEWLINE# p . job ( 'Tool' ) . run ( 'MyTool' , data = [ 'A' , 'B' ] ) #NEWLINE# return p #NEWLINE# #UNINDENT# #UNINDENT# p = jip . Pipeline ( ) #NEWLINE# p . run ( 'MyPipeline' ) #NEWLINE# profile = jip . Profile ( name = 'customname' ) #NEWLINE# jobs = jip . create_jobs ( p , profile = jobs ) #NEWLINE# assert ( len ( jobs ) == 2 ) #NEWLINE# assert ( jobs [ 0 ] . name == 'Tool.0' ) #NEWLINE# assert ( jobs [ 0 ] . pipeline == 'customname' ) #NEWLINE# assert ( jobs [ 1 ] . name == 'Tool.1' ) #NEWLINE# assert ( jobs [ 1 ] . pipeline == 'customname' )