'Validate invalid `filters` value in endpoint group parameters.
This test ensures that exception is raised when non-dict values is
used as `filters` in endpoint group create request.'

def test_validate_create_endpoint_group_fails_with_invalid_filters(self):

    request_to_validate = {'description': 'endpoint    group    description', 'name': 'endpoint_group_name'}
    for invalid_filters in _INVALID_FILTERS:
        request_to_validate['filters'] = invalid_filters
        self.assertRaises(exception.SchemaValidationError, self.create_endpoint_grp_validator.validate, request_to_validate)
