#NEWLINE# def test_scraper_failure( self ) : #NEWLINE# #INDENT# job = self . _do_test_job ( IOError ( 'no more resources, ha!' ) , 'failed' ) #NEWLINE# stats = job . logs . stats ( ) #NEWLINE# self . assertTrue ( self ) #NEWLINE# self . assertEqual ( stats [ 'totals' ] [ 'input_values' ] , ( ( self . MAGICN * 4 ) + 1 ) )