

def test_init_with_local_scores_file_fail(self):
    scores_file = NamedTemporaryFile(delete=False)
    scores_file.close()
    g = Game(scores_file=scores_file.name)
    self.assertEqual(g.best_score, 0)
    remove(scores_file.name)

dataset/ETHPy150Open bfontaine/term2048/tests/test_game.py TestGame.test_init_with_local_scores_file_fail/original