def test_under_zero(self): """test for under_zero method """ # check that input must be >= 0 for x and y r = Rectangle(1, 1) with self.assertRaises(ValueError): r.under_zero(-2, "x") with self.assertRaises(ValueError): r.under_zero(-2, "y")