Pybites Logo

Write tests for an account class

Level: Advanced (score: 4)

We moved from mutpy (<= 3.7) to mutatest (3.12 📈) for test Bites.

First we check if you have 90% test coverage, then we inject some mutations into the code to see if your tests catch them. 🤯

Good luck 🔥 💪 (please be patient 🙏 - it can take a few seconds to run the tests 🕒)

In our third Test Bite you will write tests for (a reduced version of) the Account class Bob wrote for his Enriching Your Python Classes With Dunder (Magic, Special) Methods articleYou can assume Accounts to be instantiated with integer amounts only.