Sample code of Python Testing Cookbook