def test___render(self):
    """Make sure rendering is not broken."""
    if 'UNITTEST_IN_DOCKER' in os.environ:
      # Rendering is not supported.
      return
    cfg = config.Config({
        'level': 'tests.11_vs_11_hard_deterministic',
    })
    env = football_env.FootballEnv(cfg)
    env.render()
    o = env.reset()
    hash_value = observation_hash(o)
    for _ in range(10):
      o, _, _, _ = env.step(football_action_set.action_right)
      hash_value = observation_hash(o, hash_value)
    # Linux
    expected_hash_value = 4000732293
    if platform.system() == 'Windows':
      # On Windows we may have to check four possible values:
      #  for each of architectures (32 or 64 bits)
      #    what SDK was used (latest or from Visual Studio 2017)
      #  We will check only two values once we start using windows-latest VM again
      if sys.maxsize > 2 ** 32:  # x64
        expected_hash_value = 683941870 if hash_value != 3676773624 else 3676773624
      else:  # x86
        expected_hash_value = 1490754124 if hash_value != 2808421794 else 2808421794
    elif platform.system() == 'Darwin':
      expected_hash_value = 1865563121
    self.assertEqual(hash_value, expected_hash_value)
    env.close()
Make sure rendering is not broken.
gfootball/env/football_env_test.py