#NEWLINE# def test_tool_name_set_in_validate( ) : #NEWLINE# #INDENT# @ jip . tool ( ) #NEWLINE# class MyTool ( ) : #NEWLINE# #INDENT# def validate( self ) : #NEWLINE# #INDENT# self . name ( 'testtool' ) #NEWLINE# #UNINDENT# def get_command( self ) : #NEWLINE# #INDENT# return 'echo' #NEWLINE# #UNINDENT# #UNINDENT# p = jip . Pipeline ( ) #NEWLINE# p . run ( 'MyTool' ) #NEWLINE# p . expand ( ) #NEWLINE# profile = jip . Profile ( name = 'testname' ) #NEWLINE# jobs = jip . create_jobs ( p , profile = profile ) #NEWLINE# assert ( len ( jobs ) == 1 ) #NEWLINE# assert ( jobs [ 0 ] . name == 'testtool' ) #NEWLINE# assert ( jobs [ 0 ] . pipeline == 'testname' )