def test_authorize_url_construction():
    client = soundcloud.Client(client_id='foo', client_secret='bar',
                               redirect_uri='http://example.com/callback')
    eq_('https://api.soundcloud.com/connect?%s' % (urlencode({
        'scope': 'non-expiring',
        'client_id': 'foo',
        'response_type': 'code',
        'redirect_uri': 'http://example.com/callback'
     }),), client.authorize_url())
Test that authorize url is being generated properly.
dataset/ETHPy150Open soundcloud/soundcloud-python/soundcloud/tests/test_oauth.py/test_authorize_url_construction