def test_application_deauthorization(self):

        client = Client()

        with patch.object(GraphAPI, 'get') as graph_get:
            graph_get.return_value = TEST_GRAPH_ME_RESPONSE

            client.post(
                path = reverse('home'),
                data = {
                    'signed_request': TEST_SIGNED_REQUEST
                }
            )

        user = User.objects.get(id=1)
        assert user.authorized == True

        client.post(
            path = reverse('deauthorize_application'),
            data = {
                'signed_request': TEST_SIGNED_REQUEST
            }
        )

        user = User.objects.get(id=1)
        assert user.authorized == False
Verify that users are marked as deauthorized upon
dataset/ETHPy150Open jgorset/fandjango/tests/test_fandjango.py/TestFacebookMiddleware.test_application_deauthorization