Update leap_test.py

assertFalse() passes None values as False in the test case. To solve this issue assertIs() is implemented.