A sample python code with unittests using pyunit.