示例#1
0
 def test_5(self):
     self.assertEqual(leap_year.run("0"), "invalid input")
示例#2
0
 def test_4(self):
     self.assertEqual(leap_year.run(400), "is a leap year")
     self.assertEqual(leap_year.run(2800), "is a leap year")
示例#3
0
 def test_2(self):
     self.assertEqual(leap_year.run(4), "is a leap year")
     self.assertEqual(leap_year.run(8), "is a leap year")
示例#4
0
 def test_3(self):
     self.assertEqual(leap_year.run(100), "is not a leap year")
     self.assertEqual(leap_year.run(2300), "is not a leap year")
示例#5
0
 def test_1(self):
     self.assertEqual(leap_year.run(1), "is not a leap year")
     self.assertEqual(leap_year.run(2002), "is not a leap year")