Exemple #1
0
 def test_leap_year_2100(self):
     self.assertEqual(is_leap(2100), False)
Exemple #2
0
 def test_leap_year_1990(self):
     self.assertEqual(is_leap(1990), False)
 def test_is_leap(self):
     self.assertEqual(is_leap(2004),
                      "Kabisat",
                      msg="Test Case is Leap Year")
Exemple #4
0
 def test_leap_year_1992(self):
     self.assertEqual(is_leap(1992), True)
 def test_is_not_leap(self):
     self.assertEqual(is_leap(2001),
                      "Bukan Kabisat",
                      msg="Test Case is not Leap Year")