def test_leap9(self): year = 0.1 expected = False self.assertEqual(is_leapyear(year), expected)
def test_leap7(self): year = -1970 expected = False self.assertEqual(is_leapyear(year), expected)
def test_leap5(self): year = None expected = False self.assertEqual(is_leapyear(year), expected)
def test_leap4(self): year = 2022 expected = False self.assertEqual(is_leapyear(year), expected)
def test_leap3(self): year = 2020 expected = True self.assertEqual(is_leapyear(year), expected)
def test_leap1(self): year = 1972 expected = True self.assertEqual(is_leapyear(year), expected)