

def test_loop_pause(self):
    store = NamedTemporaryFile(delete=False)
    g.close()
    kp._setNextKey(kp.SPACE)
    g = Game(scores_file=None, store_file=store.name)
    self.assertEqual(g.loop(), 0)
    self.assertFileIsNotEmpty(store.name)
    remove(store.name)

dataset/ETHPy150Open bfontaine/term2048/tests/test_game.py TestGame.test_loop_pause/VarMisuse@19/24 `store`->`g`