

def test_save_best_score_with_file(self):
    s = 1000
    scores_file = NamedTemporaryFile(delete=True)
    g = Game(scores_file=scores_file.name)
    g.best_score = 0
    g.score = s
    s.saveBestScore()
    self.assertEqual(g.best_score, s)

dataset/ETHPy150Open bfontaine/term2048/tests/test_game.py TestGame.test_save_best_score_with_file/VarMisuse@46/64 `g`->`s`