#NEWLINE# def test_general_download_exception( self , download_url ) : #NEWLINE# #INDENT# "\n        Check the diaper records what is dumped into it.\n\n        At this point in `handle_requirements`, weird stuff happens\n        with peoples distributions.  We can't save the world, but we\n        can catch their crap and let the rest of the downloads\n        continue.\n        " #NEWLINE# ( rd , req ) = self . basic_prep ( download_url ) #NEWLINE# download_url . side_effect = Exception ( 'Kaboom' ) #NEWLINE# assert ( rd . handle_requirement ( req , req . mock_finder ) is None ) #NEWLINE# assert ( len ( rd . errors ) == 1 ) #NEWLINE# assert ( 'archive' in rd . errors [ 0 ] )