'The ``NodeState`` for the local node is removed from the update if the
era doesn\'t match this node\'s actual era.'

def test_cluster_updated_wrong_era(self):

    service = self.service
    service.cluster_status = fsm = StubFSM()
    config = Deployment()
    state = DeploymentState(nodes=[self.node_state], node_uuid_to_era={self.deployer.node_uuid: uuid4()})
    service.cluster_updated(config, state)
    self.assertEqual(fsm.inputted, [_StatusUpdate(configuration=config, state=state.set(nodes=[]))])
