def test_get_post_authorization_redirect_url(self):
        request = request_factory.get('/foo/bar/baz')
        redirect_url = get_post_authorization_redirect_url(request)

        assert redirect_url == 'https://apps.facebook.com/fandjango-test/bar/baz'
Verify that Fandjango redirects the user correctly upon authorizing the application.
dataset/ETHPy150Open jgorset/fandjango/tests/test_fandjango.py/TestFacebookMiddleware.test_get_post_authorization_redirect_url