def METHOD_NAME(self):
    w = DeferWaiter()
    times = []
    def action():
        times.append(round(self.reactor.seconds(), 1))
    h = RepeatedActionHandler(self.reactor, w, 1, action)
    h.start()
    self.reactor.pump([0.1] * 15)
    h.setInterval(2)
    self.reactor.pump([0.1] * 50)
    self.assertEqual(times, [1.1, 2.1, 4.1, 6.2])
    h.stop()
    d = w.wait()
    self.assertTrue(d.called)
    yield d