Example automated tests for Python, from Advanced Python Newsletter