old_contents: import unittest
  from synergine.core.Core import Core
  from synergine.test.TestTerminal import TestTerminal
  
  
  class TestSimulation(unittest.TestCase):
      def setUp(self):
          self._connection = TestTerminal
  
      def _get_set_up_simulations(self):
          raise NotImplementedError
  
      def _get_core_configuration(self, cycles, main_process=True):
          return {
              'engine': {
                  'fpsmax': True,
                  'debug': {
                      'mainprocess': main_process,
                      'cycles': cycles
                  }
              },
              'simulations': self._get_set_up_simulations(),
              'connections': [self._connection]
          }
  
      def get_core(self, cycles=0, main_process=True, modules=None):
          #
          #
          core = Core(self._get_core_configuration(cycles, main_process), modules)
          have_to_be_runned_by = core.have_to_be_runned_by()
          if have_to_be_runned_by:
              have_to_be_runned_by.encapsulate_run(core.run)
          return core
  
      def _get_synergy_object_manager_for_cycle(self, cycles, main_process=True, modules=None):
          core = self._run_and_get_core(cycles, main_process, modules=modules)
          return core.get_terminal(self._connection.get_name()).get_synergy_object_manager()
  
      def _run_and_get_core(self, cycles, main_process=True, modules=None):
          core = self.get_core(cycles, main_process, modules=modules)
          core.run()
          return core
new_contents: import unittest
  from synergine.core.Core import Core
  from synergine.test.TestTerminal import TestTerminal
  
  
  class TestSimulation(unittest.TestCase):
      def setUp(self):
          self._connection = TestTerminal
  
      def _get_set_up_simulations(self):
          raise NotImplementedError
  
      def _get_core_configuration(self, cycles, main_process=True):
          return {
              'engine': {
                  'fpsmax': True,
                  'debug': {
                      'mainprocess': main_process,
                      'cycles': cycles,
                      'seed': 42
                  }
              },
              'simulations': self._get_set_up_simulations(),
              'connections': [self._connection]
          }
  
      def get_core(self, cycles=0, main_process=True, modules=None):
          #
          #
          core = Core(self._get_core_configuration(cycles, main_process), modules)
          have_to_be_runned_by = core.have_to_be_runned_by()
          if have_to_be_runned_by:
              have_to_be_runned_by.encapsulate_run(core.run)
          return core
  
      def _get_synergy_object_manager_for_cycle(self, cycles, main_process=True, modules=None):
          core = self._run_and_get_core(cycles, main_process, modules=modules)
          return core.get_terminal(self._connection.get_name()).get_synergy_object_manager()
  
      def _run_and_get_core(self, cycles, main_process=True, modules=None):
          core = self.get_core(cycles, main_process, modules=modules)
          core.run()
          return core
subject: add default seed in test class