def isleap(year):
    return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
Test longitude validation.
dataset/ETHPy150Open babble/babble/include/jython/Lib/calendar.py/isleap--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_longitude