def test_max_points_smaller_min_points(self): with self.assertRaises(ValueError) as e: ok = OrdinaryKriging(self.V, min_points=3, max_points=5) ok.max_points = 2 self.assertEqual(str(e.exception), 'max_points can\'t be smaller than min_points.')
def test_max_points_negative(self): with self.assertRaises(ValueError) as e: ok = OrdinaryKriging(self.V, max_points=10) ok.max_points = - 2 self.assertEqual( str(e.exception), 'max_points can\'t be negative.' )