def test_render_state_equals_norender(self, seed):
    """Checks that rendering game state is the same as non-rendering."""
    if 'UNITTEST_IN_DOCKER' in os.environ:
      # Forge doesn't support rendering.
      return
    cfg1 = config.Config({
        'level': 'tests.symmetric',
        'game_engine_random_seed': seed,
        'players': ['agent:left_players=1,right_players=1'],
        'reverse_team_processing': False,
    })
    cfg2 = config.Config({
        'level': 'tests.symmetric',
        'game_engine_random_seed': seed,
        'players': ['agent:left_players=1,right_players=1'],
        'reverse_team_processing': False,
    })
    random.seed(seed)
    action_cnt = len(football_action_set.get_action_set(cfg1))
    actions = [random.randint(0, action_cnt - 1) for _ in range(50)]
    queue1 = Queue()
    thread1 = threading.Thread(
        target=run_scenario, args=(cfg1, queue1, actions, False, False))
    thread1.start()
    queue2 = Queue()
    thread2 = threading.Thread(
        target=run_scenario, args=(cfg2, queue2, actions, True, False))
    thread2.start()
    while True:
      o1 = queue1.get()
      o2 = queue2.get()
      if not o1 or not o2:
        self.assertEqual(o1, o2)
        break
      self.compare_observations(o1, o2)
    thread1.join()
    thread2.join()
Checks that rendering game state is the same as non-rendering.
gfootball/env/football_env_test.py