def METHOD_NAME(self):
    import espressomd.electrostatics
    self.system.time_step = 0.01
    self.add_charged_particles()
    unsorted_node_grid = self.system.cell_system.node_grid[::-1]
    self.system.cell_system.node_grid = unsorted_node_grid
    solver = espressomd.electrostatics.P3M(prefactor=2, accuracy=1e-2)
    with self.assertRaisesRegex(Exception, 'node grid must be sorted, largest first'):
        self.system.electrostatics.solver = solver