#NEWLINE# def testRetryRequest( self ) : #NEWLINE# #INDENT# self . c . opener = self . mox . CreateMockAnything ( ) #NEWLINE# mock_request = self . mox . CreateMockAnything ( ) #NEWLINE# for ( k , v ) in self . headers . iteritems ( ) : #NEWLINE# #INDENT# mock_request . add_header ( k , v ) . AndReturn ( None ) #NEWLINE# #UNINDENT# self . c . opener . open ( mock_request ) . AndReturn ( '200' ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# ret = self . c . _RetryRequest ( v , 'foo desc' ) #NEWLINE# self . assertEqual ( ret , '200' ) #NEWLINE# self . mox . VerifyAll ( )