'When a convergence loop in the sleeping state receives a STOP the loop
stops.'

def test_convergence_iteration_sleeping_stop(self):

    loop = self.convergence_iteration()
    loop.receive(ConvergenceLoopInputs.STOP)
    self.assertEqual(dict(state=loop.state, calls=self.reactor.getDelayedCalls()), dict(state=ConvergenceLoopStates.STOPPED, calls=[]))
