#NEWLINE# def test_meta_overrides_settings( self ) : #NEWLINE# #INDENT# request = Request ( 'http://scrapytest.org' , meta = { #NEWLINE# #INDENT# 'handle_httpstatus_list' : [ 404 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# res404 = self . res404 . copy ( ) #NEWLINE# res404 . request = request #NEWLINE# res402 = self . res402 . copy ( ) #NEWLINE# res402 . request = request #NEWLINE# self . assertEquals ( None , self . mw . process_spider_input ( res404 , self . spider ) ) #NEWLINE# self . assertRaises ( HttpError , self . mw . process_spider_input , res404 , self . spider )