def test_get_post_authorization_redirect_url(self):
        request = request_factory.get('/foo/bar/baz')
        redirect_url = get_post_authorization_redirect_url(request, canvas = False)
        # RequestFactory has the hostname "testserver"
        assert redirect_url == 'http://testserver/foo/bar/baz'
The notice settings view.
dataset/ETHPy150Open jgorset/fandjango/tests/test_fandjango.py/TestFacebookWebMiddleware.test_get_post_authorization_redirect_url--crossover with--dataset/ETHPy150Open amarandon/smeuhsocial/apps/notification/views.py/notice_settings