def setUp(self):
self.testbed = testbed.Testbed()<EOL>self.testbed.setup_env(overwrite=True, app_id=self.APP_ID)<EOL>self.testbed.activate()<EOL>self.ResetKindMap()<EOL>self.conn = self.MakeConnection()<EOL>self.ctx = self.MakeContext(conn=self.conn)<EOL>tasklets.set_context(self.ctx)<EOL>self._logger = logging.getLogger()<EOL>self._old_log_level = self._logger.getEffectiveLevel()<EOL>
Set up test framework.

        Configures basic environment variables, stubs and creates a default
        connection.