#NEWLINE# @ mock . patch ( 'socialregistration.clients.oauth.OAuth2.request' ) #NEWLINE# @ mock . patch ( 'facebook.GraphAPI.request' ) #NEWLINE# def setup_callback( self , MockFacebook , MockRequest ) : #NEWLINE# #INDENT# MockRequest . side_effect = get_mock_func ( self . get_setup_callback_mock_response ) #NEWLINE# MockFacebook . side_effect = get_mock_func ( self . get_facebook_data ) #NEWLINE# response = self . client . get ( self . get_setup_callback_url ( ) ) #NEWLINE# return response