#NEWLINE# def test_code_conversion( self ) : #NEWLINE# #INDENT# from open_facebook import exceptions as open_facebook_exceptions #NEWLINE# code = 'AQDByzD95HCaQLIY3PyQFvCJ67bkYx5f692TylEXARQ0p6_XK0mXGRVBU3G759qOIa_A966Wmm-kxxw1GbXkXQiJj0A3b_XNFewFhT8GSro4i9F8b_7q1RSnKzfq327XYno-Qw4NGxm0ordSl0gJ0YTjhwY8TwSMy2b2whD5ZhHvaYkEaC1J-GcBhkF7o4F2-W8' #NEWLINE# try : #NEWLINE# #INDENT# user_token = FacebookAuthorization . convert_code ( code , redirect_uri = 'http://local.mellowmorning.com:8080' ) #NEWLINE# facebook = OpenFacebook ( user_token [ 'access_token' ] ) #NEWLINE# facebook . me ( ) #NEWLINE# #UNINDENT# except open_facebook_exceptions . ParameterException as e : #NEWLINE# #INDENT# pass