def test_uint_cube_float_cube(self): with self.assertRaisesRegexp(ArithmeticError, self.emsg): _inplace_common_checks(self.uint_cube, self.float_cube, self.op)
def test_float_cube__scalar_float(self): result = _inplace_common_checks(self.float_cube, self.scalar_float, self.op) self.assertIsNone(result)
def test_int_cubes(self): result = _inplace_common_checks(self.int_cube, self.int_cube, self.op) self.assertIsNone(result)
def test_float_cube_uint_cube(self): result = _inplace_common_checks(self.float_cube, self.uint_cube, self.op) self.assertIsNone(result)
def test_int_cube__scalar_float(self): with self.assertRaisesRegexp(ArithmeticError, self.emsg): _inplace_common_checks(self.int_cube, self.scalar_float, self.op)
def test_int_cube__float_array(self): with self.assertRaisesRegexp(ArithmeticError, self.emsg): _inplace_common_checks(self.int_cube, self.float_data, self.op)
def test_uint_cube__int_array(self): with self.assertRaisesRegex(ArithmeticError, self.emsg): _inplace_common_checks(self.uint_cube, self.int_cube, self.op)
def test_float_cube__float_array(self): result = _inplace_common_checks(self.float_cube, self.float_data, self.op) self.assertIsNone(result)