'If the ``Deployment`` has no ``Node`` with a matching hostname,
``get_node`` returns a new empty ``Node`` with the given hostname.'

def test_deployment_without_node(self):

    ip = u'127.0.0.1'
    identifier = uuid4()
    trap = Node(uuid=uuid4(), hostname=u'192.168.1.1')
    config = Deployment(nodes={trap})
    self.assertEqual(Node(uuid=identifier, hostname=ip), config.get_node(identifier, hostname=ip))
