#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# sleep_patch = mock . patch . object ( time , 'sleep' , autospec = True ) #NEWLINE# self . addCleanup ( sleep_patch . stop ) #NEWLINE# sleep_patch . start ( ) #NEWLINE# self . mock_jobs_service = mock . Mock ( ) #NEWLINE# self . collector = external . BigQueryJobResultCollector ( sleep_patch . mock_jobs_service , 'dummy_project_id' )