示例#1
0
 def test_valid_leap(self):
     leap = new_leap_year.leap_year(2000)
     self.assertIsNotNone(leap)
     self.assertTrue(leap)
示例#2
0
 def test_invalid_float(self):
     leap = new_leap_year.leap_year(1003.20)
     self.assertIsNotNone(leap)
     self.assertFalse(leap)
示例#3
0
 def test_invalid_leap(self):
     leap = new_leap_year.leap_year(1998)
     self.assertIsNotNone(leap)
     self.assertFalse(leap)
示例#4
0
 def test_invalid_string(self):
     leap = new_leap_year.leap_year("ahoj")
     self.assertIsNotNone(leap)
     self.assertFalse(leap)
示例#5
0
 def test_valid_leap_not_100(self):
     leap = new_leap_year.leap_year(1996)
     self.assertIsNotNone(leap)
     self.assertTrue(leap)