

def test_get_deployed_network_settings(self):
    resp = self.env.neutron_networks_get(self.cluster.id)
    self.assertEqual(200, resp.status_code)
    net_attrs = resp.json_body
    transaction = objects.Transaction.create({
        'cluster_id': self.cluster.id,
        'status': consts.TASK_STATUSES.ready,
        'name': consts.TASK_NAMES.deployment,
    })
    objects.Transaction.attach_network_settings(transaction, net_attrs)
    self.assertIsNotNone(objects.TransactionCollection.get_last_succeed_run(self.cluster))
    resp = self.app.get(reverse('NetworkAttributesDeployedHandler', kwargs={
        'cluster_id': self.cluster.id,
    }), headers=resp.default_headers)
    self.assertEqual(200, resp.status_code)
    self.datadiff(net_attrs, resp.json_body)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py TestNeutronNetworkConfigurationHandler.test_get_deployed_network_settings/VarMisuse@139/187 `self`->`resp`