def METHOD_NAME(self):
    handler = self.dispatcher._handler_for_request(self.request)
    self.assertIsInstance(handler, AuthorizationCodeGrant)
    self.assertTrue(self.dispatcher.request_validator.get_authorization_code_scopes.called)