def test_post_form_with_request_token_failing_oauth(self):
        self.token.token_type = self.token.REQUEST
        self.token.save()

        auth = self._create_authorization_header()
        response = self.csrf_client.post('/oauth/', {'example': 'example'}, HTTP_AUTHORIZATION=auth)
        self.assertIn(response.status_code, (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN))
Ensure POSTing with unauthorized request token instead of access token fails
dataset/ETHPy150Open jlafon/django-rest-framework-oauth/tests/test_oauth.py/OAuthTests.test_post_form_with_request_token_failing_oauth