def setUp(self):
    options.options.localdb = True
    options.options.fileobjstore = True
    options.options.localdb_dir = ''

    super(DBBaseTestCase, self).setUp()
    options.options.localdb_dir = ''
    self._client = local_client.LocalClient(vf_schema.SCHEMA)
    object_store.InitObjectStore(temporary=True)
    self._temp_dir = tempfile.mkdtemp()
    server_log.LogBatchPersistor.SetInstance(server_log.LogBatchPersistor(backup_dir=self._temp_dir))
    IdAllocator.ResetState()

    options.options.domain = 'goviewfinder.com'
    secrets.InitSecretsForTest()

    # Set deterministic testing timestamp used in place of time.time() in server code.
    util._TEST_TIME = time.time()

    self._RunAsync(vf_schema.SCHEMA.VerifyOrCreate, self._client)
    OpManager.SetInstance(OpManager(op_map=DB_OPERATION_MAP, client=self._client, scan_ops=True))

    # Create users with linked email identity and default viewpoint.
    self._user, self._mobile_dev = self._CreateUserAndDevice(user_dict={'user_id': 1, 'name': 'Spencer Kimball'},
                                                             ident_dict={'key': 'Email:spencer.kimball@emailscrubbed.com',
                                                                         'authority': 'Google'},
                                                             device_dict={'device_id': 1, 'name': 'Spencer\'s iPhone'})

    self._user2, _ = self._CreateUserAndDevice(user_dict={'user_id': 2, 'name': 'Peter Mattis'},
                                               ident_dict={'key': 'Email:peter.mattis@emailscrubbed.com',
                                                           'authority': 'Google'},
                                               device_dict=None)
Sets up _client as a test emulation of DynamoDB. Creates the full
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/base_test.py/DBBaseTestCase.setUp