def METHOD_NAME(self):
    with self.assertRaisesRegex(TypeError, "Parameter 'boundary_type' must be a subclass of VelocityBounceBack"):
        self.lbf.add_boundary_from_shape(
            shape=self.wall_shape1, velocity=[0., 0., 0.],
            boundary_type=self.lb_class)
    with self.assertRaisesRegex(ValueError, "expected an espressomd.shapes.Shape"):
        self.lbf.add_boundary_from_shape(
            shape=self.lbf, velocity=[0., 0., 0.],
            boundary_type=espressomd.lb.VelocityBounceBack)
    with self.assertRaisesRegex(ValueError, r"Cannot process velocity value grid of shape \(4,\)"):
        self.lbf.add_boundary_from_shape(
            shape=self.wall_shape1, velocity=[0., 0., 0., 0.],
            boundary_type=espressomd.lb.VelocityBounceBack)
    self.lbf.add_boundary_from_shape(self.wall_shape1, [0., 0., 0.])