def METHOD_NAME(self):
    """
    Assert that the Mach number check fires an exception.
    """
    max_vel = 1.1 * self.lbf.mach_limit() * AGRID / TAU
    vbb = espressomd.lb.VelocityBounceBack([0, 0, max_vel])
    error_msg = 'Slip velocity exceeds Mach 0.35'
    with self.assertRaisesRegex(ValueError, error_msg):
        self.lbf[0, 0, 0].boundary = vbb
    self.assertIsNone(self.lbf[0, 0, 0].boundary)
    with self.assertRaisesRegex(ValueError, error_msg):
        shape = espressomd.shapes.Wall(normal=[1, 0, 0], dist=AGRID)
        self.lbf.add_boundary_from_shape(shape, vbb.velocity)
    self.assertIsNone(self.lbf[0, 0, 0].boundary)