#NEWLINE# def test_customized_worker( self ) : #NEWLINE# #INDENT# a = DummyTask ( 3 ) #NEWLINE# self . assertFalse ( a . complete ( ) ) #NEWLINE# self . assertFalse ( self . worker_scheduler_factory . worker . complete ( ) ) #NEWLINE# luigi . build ( [ self ] , worker_scheduler_factory = self . worker_scheduler_factory ) #NEWLINE# self . assertTrue ( a . complete ( ) ) #NEWLINE# self . assertTrue ( self . worker_scheduler_factory . worker . complete ( ) )