def _extractReturnURL(endpoint):
    if endpoint.matchTypes([RP_RETURN_TO_URL_TYPE]):
        return endpoint.uri
    else:
        return None
Test that all methods of middleware are called for normal HttpResponses
dataset/ETHPy150Open openid/python-openid/openid/server/trustroot.py/_extractReturnURL--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/utils/decorators.py/DecoratorFromMiddlewareTests.test_full_dec_normal