#NEWLINE# def test_process_request( self ) : #NEWLINE# #INDENT# ( defaults , spider , mw ) = self . get_defaults_spider_mw ( ) #NEWLINE# req = Request ( 'http://www.scrapytest.org' ) #NEWLINE# mw . process_request ( req , spider ) #NEWLINE# self . assertEquals ( req . headers , defaults )