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