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