In this step, you will run the existing unit tests and add some of your own.
- Look at the existing unit tests:
christie@paw-paw:~/catinabox$ ls tests/unitWe have two test files:
- Run the existing unit tests:
py.test tests/unit-
Add more unit tests to both
test_pantry.pyandtest_cattery.pyuntil you are confident that they are well covered.Verify your tests are working by intentionally breaking them (i.e. change the logic in
CatteryandPantryto be incorrect and ensure your tests fail). -
If you get stuck, take a peek at [the solution](TODO: git tag).