#NEWLINE# def testFetchXsrfToken( self ) : #NEWLINE# #INDENT# self . c . opener = self . mox . CreateMockAnything ( ) #NEWLINE# mock_response = self . mox . CreateMockAnything ( ) #NEWLINE# mock_response . read ( ) . AndReturn ( 'mock-xsrf-token' ) #NEWLINE# self . c . opener . open ( mox . IsA ( base_client . fancy_urllib . FancyRequest ) ) . AndReturn ( self ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEquals ( 'mock-xsrf-token' , self . c . _FetchXsrfToken ( 'Action' ) )