#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# mocker = requests_mock . Mocker ( ) #NEWLINE# mocker . post ( 'https://graph.facebook.com/oauth/access_token' , text = 'access_token=urlencoded' , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'text/plain' , #NEWLINE# #UNINDENT# } ) #NEWLINE# mocker . start ( ) #NEWLINE# self . addCleanup ( self . stop ) #NEWLINE# facebook = OAuth2Session ( 'foo' , redirect_uri = 'https://i.b' ) #NEWLINE# self . session = facebook_compliance_fix ( facebook )