

def test_get_request_should_return_net_manager_and_networks(self):
    resp = self.env.nova_networks_get(self.cluster.id)
    data = resp.json_body
    self.assertEqual(data['networking_parameters']['net_manager'], self.cluster.network_config.net_manager)
    for network_group in self.cluster.network_groups:
        network = [i for i in data['networks'] if (i['id'] == network_group.id)][0]
        keys = ['name', 'group_id', 'vlan_start', 'cidr', 'id']
        for key in keys:
            self.assertEqual(i[key], getattr(network_group, key))

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py TestNovaNetworkConfigurationHandler.test_get_request_should_return_net_manager_and_networks/VarMisuse@115/166 `network`->`i`