def test1800Value(self):
     res = is_year_leap(1800)
     self.assertFalse(res)
 def testZeroValue(self):
     with self.assertRaises(ValueError):
         is_year_leap(0)
 def test2000Value(self):
     res = is_year_leap(2000)
     self.assertTrue(res)
 def testMaxValue(self):
     with self.assertRaises(TypeError):
         is_year_leap(float('inf'))
 def testMinusValue(self):
     res = is_year_leap(-1)
     self.assertFalse(res)
 def testWrongTypeValue(self):
     with self.assertRaises(TypeError):
         is_year_leap('s')
 def testNoValue(self):
     with self.assertRaises(TypeError):
         is_year_leap()