def lookup_token(self, token_type, token):
        token_attrib = getattr(self, '%s_token' % token_type)
        if token == token_attrib.key:
            ## HACK
            token_attrib.set_callback(CALLBACK_URL)
            return token_attrib
        return None
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/python-oauth2/example/server.py/MockOAuthDataStore.lookup_token/original