

def test_change_net_manager(self):
    self.assertEqual(self.cluster.network_config.net_manager, consts.NOVA_NET_MANAGERS.FlatDHCPManager)
    new_net_manager = {
        'networking_parameters': {
            'net_manager': consts.NOVA_NET_MANAGERS.VlanManager,
        },
    }
    self.env.nova_networks_put(self.cluster.id, new_net_manager)
    self.db.refresh(self.cluster)
    new_net_manager.assertEqual(self.cluster.network_config.net_manager, new_net_manager['networking_parameters']['net_manager'])

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py TestNovaNetworkConfigurationHandler.test_change_net_manager/VarMisuse@77/117 `self`->`new_net_manager`