def retrieve_project(self, project, uid, token):
        self.database.authenticate(uid, token)
        res = []
        tmp = self.database[project].find(fields={'_id': True, 'meta': True})
        for item in tmp:
            res.append((str(item['_id']), item['meta']))
        return res
Test generating and validating a token.
dataset/ETHPy150Open tmetsch/suricate/suricate/analytics/proj_ntb_store.py/NotebookStore.retrieve_project--crossover with--dataset/ETHPy150Open google/oauth2client/tests/contrib/test_xsrfutil.py/XsrfUtilTests.testGenerateAndValidateToken