Homework Session05¶
Catch up!¶
- Finish the LABs from today - Exceptions lab
- Catch up from last week.
- Add Exception handling to mailroom
- And list (and dict, and set) comprehensions...
- If you’ve done all that – check out the collections module:
- https://docs.python.org/3.5/library/collections.html
- here’s a good overview: https://pymotw.com/3/collections/
Material to review before next week¶
Unit Testing:
- Dive into Python: chapter 9: http://www.diveintopython3.net/unit-testing.html
NOTE: you will find that most introductions to unit testing with Python use the builtin unitest
module. However, it is a bit heavyweight, and requires some knowledge of OOP – classes, etc. So we’ll be using pytest in this class: http://doc.pytest.org/en/latest/. But the principles of testing are the same.
- Ned Batchelder’s intro to testing presentation:
** Advanced Argument Passing