Python Code Challenge

225 - Write a function to test if a given number is a happy number and write test cases for it.