The rejected request is part of the contract too. with pytest.raises(ValueError, match="insufficient"): passes only when the block raises that error with a matching message; a version that quietly accepts the request fails the test.
A raised error is not the whole story. A withdrawal that is refused must leave the balance as it was. A version that subtracts first and raises afterwards still raises the right error, so a test that only checks the error passes it. After the with block, assert the state you care about.
Write error tests for each kind of bad input the contract names, such as an empty quantity or an amount over the maximum, because each is usually handled by its own line of code. Keep a normal successful case as well: a version that rejects everything passes every error test.
Check the error and the state after it. A version that changes the balance before raising fails the last line.