def test_scope_superset_of_endpoint_scope_succeeds(self):
    self.initialize(scope_names=['verify', 'autologin'])

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

    api_request = self.oauth_client.make_api_request(access_token, {})
    api_endpoint = make_oauth_protected_endpoint('verify')

    response = api_endpoint(api_request)
    self.assertIs(response, True, response)
Requests from a Client with access to multiple scopes should succeed
dataset/ETHPy150Open Locu/djoauth2/djoauth2/tests/test_endpoint.py/TestOAuthScopeEndpointDecorator.test_scope_superset_of_endpoint_scope_succeeds