def METHOD_NAME(get_params):
    # act
    response = APIClient().get('/api/v1/schema/swagger-ui/oauth2-redirect.html?' + get_params)
    # assert
    assert response.status_code == 302
    if isinstance(response, HttpResponseRedirect):
        # older django versions test client directly returns the response instance
        assert response.url == '/static/drf_spectacular_sidecar/swagger-ui-dist/oauth2-redirect.html?' + get_params
    else:
        assert response.headers['Location'] ==\
               '/static/drf_spectacular_sidecar/swagger-ui-dist/oauth2-redirect.html?' + get_params