<s> from __future__ import absolute_import <EOL> import unittest <EOL> from oauth2lib . client import Client <EOL> from oauth2lib import utils <EOL> class ClientTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . client = Client ( client_id = '<STR_LIT>' , <EOL> client_secret = '<STR_LIT>' , <EOL> redirect_uri = '<STR_LIT>' , <EOL> authorization_uri = '<STR_LIT>' , <EOL> token_uri = '<STR_LIT>' ) <EOL> def test_get_authorization_code_uri ( self ) : <EOL> """<STR_LIT>""" <EOL> uri = self . client . get_authorization_code_uri ( state = "<STR_LIT>" ) <EOL> self . assertTrue ( uri . startswith ( '<STR_LIT>' ) ) <EOL> params = utils . url_query_params ( uri ) <EOL> self . assertEquals ( '<STR_LIT:code>' , params [ '<STR_LIT>' ] ) <EOL> self . assertEquals ( '<STR_LIT>' , params [ '<STR_LIT>' ] ) <EOL> self . assertEquals ( '<STR_LIT>' , params [ '<STR_LIT>' ] ) <EOL> self . assertEquals ( '<STR_LIT>' , params [ '<STR_LIT:state>' ] ) </s>
