def test_get_form_failing_auth_url_transport(self):
        query = urlencode({'access_token': self.access_token.token})
        response = self.csrf_client.get('/oauth2-test/?%s' % query)
        self.assertIn(response.status_code, (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN))
Ensure GETing form over OAuth with correct client credentials in query fails when DEBUG is False
dataset/ETHPy150Open jlafon/django-rest-framework-oauth/tests/test_oauth.py/OAuth2Tests.test_get_form_failing_auth_url_transport