codes for following the book Test Driven Development with Python