

def test_network_group_update_changes_network(self):
    network = self.db.query(models.NetworkGroup).filter(not_((models.NetworkGroup.name == consts.NETWORKS.fuelweb_admin))).first()
    self.assertIsNotNone(network)
    new_vlan_id = 500
    new_nets = {
        'networks': [{
            'id': network.id,
            'vlan_start': new_vlan_id,
        }],
    }
    resp = self.env.nova_networks_put(self.cluster.id, new_nets)
    self.assertEqual(resp.status_code, 200)
    self.db.refresh(network)
    self.assertEqual(network.vlan_start, 500)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py TestNovaNetworkConfigurationHandler.test_network_group_update_changes_network/original