'Tests that the list query parameter schema enforces only a single
entry for any query parameter.'

def test_list_duplicate_query_parameters_validation(self):

    params = {'limit': 1, 'marker': uuids.marker, 'hypervisor_hostname_pattern': 'foo', 'with_servers': 'true'}
    for (param, value) in params.items():
        req = self._get_request(use_admin_context=True, url=('/os-hypervisors?%s=%s&%s=%s' % (param, value, param, value)))
        self.assertRaises(exception.ValidationError, self.controller.index, req)
