Ejemplo n.º 1
0
 def test_leap9(self):
     year = 0.1
     expected = False
     self.assertEqual(is_leapyear(year), expected)
Ejemplo n.º 2
0
 def test_leap7(self):
     year = -1970
     expected = False
     self.assertEqual(is_leapyear(year), expected)
Ejemplo n.º 3
0
 def test_leap5(self):
     year = None
     expected = False
     self.assertEqual(is_leapyear(year), expected)
Ejemplo n.º 4
0
 def test_leap4(self):
     year = 2022
     expected = False
     self.assertEqual(is_leapyear(year), expected)
Ejemplo n.º 5
0
 def test_leap3(self):
     year = 2020
     expected = True
     self.assertEqual(is_leapyear(year), expected)
Ejemplo n.º 6
0
 def test_leap1(self):
     year = 1972
     expected = True
     self.assertEqual(is_leapyear(year), expected)