def fromRequest(klass, request):
        uri = request.prePathURL()
        if '?' in request.uri:
            uri += '?' + request.uri.split('?')[-1]
        return klass.fromString(uri)
test the parse_redis_url method
dataset/ETHPy150Open twisted/nevow/nevow/url.py/URL.fromRequest--crossover with--dataset/ETHPy150Open kencochrane/django-defender/defender/tests.py/AccessAttemptTest.test_parse_redis_url