'Here the users denies our app. Facebook adds this in the url
attempt=1&error_reason=user_denied&error=access_denied&error_description=The+user+denied+your+request.'

def test_decorator_denied(self):

    query_dict_string = 'attempt=1&error_reason=user_denied&error=access_denied&error_description=The+user+denied+your+request.'
    get = QueryDict(query_dict_string, True)
    denied_url = ('%s?%s' % (self.url, get.urlencode()))
    response = self.client.get(denied_url, follow=True)
    if (type(response.content) is six.binary_type):
        self.assertEqual(response.content.decode(), 'user    denied    or    error')
    else:
        self.assertEqual(response.content, 'user    denied    or    error')
