

def test_net_conf_put_doesnt_cause_out_of_ips_error(self):
    netconfig = self.env.neutron_networks_get(self.cluster.id).json_body
    public = next((net for net in netconfig['networks'] if (net['name'] == consts.NETWORKS.public)))
    public['ip_ranges'] = [['172.16.0.19', '172.16.0.19']]
    resp = self.env.neutron_networks_put(self.cluster.id, netconfig, expect_errors=True)
    self.assertEqual(200, resp.status_code)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/integration/test_network_configuration.py TestNeutronNetworkConfigurationHandler.test_net_conf_put_doesnt_cause_out_of_ips_error/original