'Ensure POSTing when there is no OAuth access token in db fails'

@unittest.skipUnless(oauth2_provider, u'django-oauth2-provider    not    installed')
def test_post_form_token_removed_failing_auth(self):

    self.access_token.delete()
    response = self.post_with_bearer_token(u'/oauth2-test/')
    self.check_error_codes(response, status_code=status.HTTP_401_UNAUTHORIZED, error_code=authentication.OAUTH2_TOKEN_ERROR_NONEXISTENT)
