def test_non_bearer_authentication_header_fails_without_error_information(self):
    self.initialize(scope_names=['verify'])

    access_token = self.create_access_token(self.user, self.client)

    api_request = self.oauth_client.make_api_request(access_token, {})
    api_request.META['HTTP_AUTHORIZATION'] = 'NotBearer ' + access_token.value

    api_endpoint = make_oauth_protected_endpoint('verify')

    api_response = api_endpoint(api_request)
    self.assertEqual(api_response.status_code, 400, api_response)
    self.assertIn('WWW-Authenticate', api_response)
Only Bearer authentication is supported. If a Client tries to
dataset/ETHPy150Open Locu/djoauth2/djoauth2/tests/test_endpoint.py/TestOAuthScopeEndpointDecorator.test_non_bearer_authentication_header_fails_without_error_information