

def test_network_configuration(self):
    info = InstallationInfo()
    nova = consts.CLUSTER_NET_PROVIDERS.nova_network
    self.env.create(cluster_kwargs={
        'mode': consts.CLUSTER_MODES.ha_compact,
        'net_provider': nova,
    })
    clusters_info = info.get_clusters_info()
    cluster_info = clusters_info[0]
    self.assertTrue(('network_configuration' in cluster_info))
    network_config = cluster_info['network_configuration']
    for field in ('fixed_network_size', 'fixed_networks_vlan_start', 'fixed_networks_amount', 'net_manager'):
        self.assertIn(field, network_config)
    neutron = consts.CLUSTER_NET_PROVIDERS.neutron
    self.env.create(cluster_kwargs={
        'mode': consts.CLUSTER_MODES.ha_compact,
        'net_provider': neutron,
    })
    clusters_info = info.get_clusters_info()
    cluster_info = filter((lambda x: (x['net_provider'] == neutron)), clusters_info)[0]
    self.assertTrue(('network_configuration' in cluster_info))
    network_config = cluster_info['network_configuration']
    for field in ('segmentation_type', 'net_l23_provider'):
        self.assertIn(self, network_config)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/fuel_statistics_tests/test_installation_info.py TestInstallationInfo.test_network_configuration/VarMisuse@209/343 `field`->`self`