def test__replay(self):
    """Has to run first, as it generates dumps for other tests."""
    dumps_before = self.current_dumps()
    self.generate_replay()
    dumps_after = self.current_dumps()
    dump1 = dumps_after - dumps_before
    assert len(dump1) == 1, dump1
    hash1 = self.compute_hash(list(dump1)[0])
    cfg = {
        'dump_full_episodes': True,
    }
    script_helpers.ScriptHelpers().replay(list(dump1)[0],
                                          directory=test_tmpdir,
                                          config_update=cfg,
                                          render=False)
    dump2 = self.current_dumps() - dumps_after
    assert len(dump2) == 1, dump2
    hash2 = self.compute_hash(list(dump2)[0])
    self.assertEqual(hash1, hash2)
Has to run first, as it generates dumps for other tests.
gfootball/env/script_helpers_test.py