'If the ``Deployment`` has a ``Node`` with a matching hostname,
``get_node`` returns it.'

def test_deployment_with_node(self):

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