Update leap_test.py

assertFalse() passes None value as False. To solve this issue assertIs() is implemented in the test case instead of assertFalse() and assertTrue()