#NEWLINE# def testCustomChecker( self , depfile_name ) : #NEWLINE# #INDENT# class MyChecker ( FileChangedChecker ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# mycmd = self . MyCmd ( task_loader = ModuleTaskLoader ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# ( params , args ) = CmdParse ( mycmd . get_options ( ) ) . parse ( [ ] ) #NEWLINE# params [ 'check_file_uptodate' ] = MyChecker #NEWLINE# params [ 'dep_file' ] = depfile_name #NEWLINE# mycmd . execute ( params , args ) #NEWLINE# assert isinstance ( args . dep_manager . checker , MyChecker )