def setUp(self):
    self.testbed = testbed.Testbed()
    self.testbed.setup_env(overwrite=True, app_id=self.APP_ID)
    self.testbed.activate()

    self.ResetKindMap()
    self.conn = self.MakeConnection()
    self.ctx = self.MakeContext(conn=self.conn)
    tasklets.set_context(self.ctx)

    self._logger = logging.getLogger()
    self._old_log_level = self._logger.getEffectiveLevel()
Set up test framework.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/test_utils.py/NDBBaseTest.setUp