There's a bug in the merchant system that allows players to buy items from the shop even when they don't have enough gold.
Complete the purchase_item function.
raise an Exception with the text not enough gold.Do not handle the exception, the test file does that for you.