'If the ``Deployment`` has a ``NodeState`` with a matching uuid,
``get_nodes`` returns it.'

def test_deploymentstate_with_node(self):

    ip = u'127.0.0.1'
    identifier = uuid4()
    node = NodeState(uuid=identifier, hostname=ip)
    state = DeploymentState(nodes={node})
    self.assertIs(node, state.get_node(identifier))
