'An API request to create a container including links to be injected in
to the container results in an updated configuration.'

def test_create_container_with_links(self):

    request_data = [{u'node_uuid': self.NODE_A, u'name': u'webserver', u'image': u'nginx', u'links': [{u'alias': u'postgres', u'local_port': 5432, u'remote_port': 54320}, {u'alias': u'mysql', u'local_port': 3306, u'remote_port': 33060}]}]
    node_data = {Node(uuid=self.NODE_A_UUID, applications=WEBSERVER_APPLICATIONS.transform([WEBSERVER_APPLICATION.name, 'links'], frozenset([Link(local_port=5432, remote_port=54320, alias='postgres'), Link(local_port=3306, remote_port=33060, alias='mysql')]))), Node(uuid=self.NODE_B_UUID)}
    return self._test_create_container(request_data, node_data)
