def METHOD_NAME(self):
    # Test if RuntimeError gets thrown for wrong shape of momentum
    cycle_time = np.linspace(0, 1, self.n_turns)
    momentum = [[450e9], [450e9]]  # only one momentum!
    with self.assertRaisesRegex(
            RuntimeError, "ERROR in Ring: synchronous data " +
            "does not match the time data",
            msg='No RuntimeError for wrong shape of momentum!'):
        Ring(self.C, self.alpha_0,
             ((cycle_time, momentum[0]), (cycle_time, momentum[1])),
             self.particle, self.n_turns, n_sections=self.num_sections)