示例#1
0
 def testStrIn(self):
     res = base.is_year_leap("abc")
     self.assertIsNone(res)
示例#2
0
 def test3(self):
     res = base.is_year_leap(3)
     self.assertEqual(res, False)
示例#3
0
 def testZeroValue(self):
     res = base.is_year_leap(0)
     self.assertEqual(res, True)
示例#4
0
 def test100(self):
     res = base.is_year_leap(100)
     self.assertEqual(res, False)
示例#5
0
 def test4(self):
     res = base.is_year_leap(4)
     self.assertEqual(res, True)
示例#6
0
 def testFloat(self):
     res = base.is_year_leap(3.7)
     self.assertEqual(res, False)
示例#7
0
 def testMinus999(self):
     res = base.is_year_leap(-999)
     self.assertEqual(res, False)
示例#8
0
 def testMinus2000(self):
     res = base.is_year_leap(-2000)
     self.assertEqual(res, True)
示例#9
0
 def testNumInStr(self):
     res = base.is_year_leap("2000")
     self.assertEqual(res, True)
示例#10
0
 def testListIn(self):
     res = base.is_year_leap([1, 2])
     self.assertIsNone(res)