def afterSecondUpgrade(result, store): player = store.getItemByID(playerID, autoUpgrade=False) sword = store.getItemByID(swordID, autoUpgrade=False) self._testPlayerAndSwordState(player, sword)