Learn Python function testing