'If the ``DeploymentState`` has no ``NodeState`` with a matching
uuid, ``get_node`` returns a new empty ``NodeState`` with the given
uuid and defaults.'

def test_deploymentstate_without_node(self):

    identifier = uuid4()
    trap = NodeState(uuid=uuid4(), hostname=u'192.168.1.1')
    state = DeploymentState(nodes={trap})
    self.assertEqual(NodeState(uuid=identifier, hostname=u'1.2.3.4'), state.get_node(identifier, hostname=u'1.2.3.4'))
