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