'If the FSM is shutdown after connection and status update is received
then it disconnects and also notifys the convergence loop FSM that
is should stop.'

def test_shutdown_after_status_update(self):

    client = connected_amp_protocol()
    desired = object()
    state = object()
    self.fsm.receive(_ConnectedToControlService(client=client))
    self.fsm.receive(_StatusUpdate(configuration=desired, state=state))
    self.fsm.receive(ClusterStatusInputs.SHUTDOWN)
    self.assertEqual((client.transport.disconnecting, self.convergence_loop.inputted[(-1)]), (True, ConvergenceLoopInputs.STOP))
