def RestoreFixtureFromCache(self):
    if RunTestsInit.fixture_cache is None:
      # Make a data store snapshot.
      db = data_store.DB.subjects
      data_store.DB.subjects = {}

      self.BuildFixture()
      (RunTestsInit.fixture_cache,
       data_store.DB.subjects) = (data_store.DB.subjects, db)

    # Restore the fixture from the cache
    data_store.DB.subjects.update(copy.deepcopy(RunTestsInit.fixture_cache))
Test the message to parents of Gate node.
dataset/ETHPy150Open google/grr/grr/gui/runtests.py/RunTestsInit.RestoreFixtureFromCache--crossover with--dataset/ETHPy150Open bayespy/bayespy/bayespy/inference/vmp/nodes/tests/test_gate.py/TestGate.test_message_to_parent