@patch('requests.get')
def test_method_dispatching_get_request_readonly(fake_get):
    client = soundcloud.Client(client_id='foo')
    expected_url = '%s?%s' % (
        client._resolve_resource_name('tracks'),
        urlencode({
            'limit': 5,
            'client_id': 'foo'
        }))
    headers = {
        'User-Agent': soundcloud.USER_AGENT,
        'Accept': 'application/json'
    }
    (fake_get.expects_call()
             .with_args(expected_url, headers=headers, allow_redirects=True)
             .returns(MockResponse("{}")))
    client.get('tracks', limit=5)
Test that calling client.get() results in a proper call
dataset/ETHPy150Open soundcloud/soundcloud-python/soundcloud/tests/test_client.py/test_method_dispatching_get_request_readonly