ipa.test_ipalib.test_parameters.test_create_param:
def test_create_param(): """ Test the `ipalib.parameters.create_param` function. """ f = parameters.create_param # Test that Param instances are returned unchanged: params = ( parameters.Param('one?'), parameters.Int('two+'), parameters.Str('three*'), parameters.Bytes('four'), ) for p in params: assert f(p) is p # Test that the spec creates an Str instance: for spec in ('one?', 'two+', 'three*', 'four'): (name, kw) = parameters.parse_param_spec(spec) p = f(spec) > assert p.param_spec is spec E assert 'one?' is 'one?' E + where 'one?' = Str('one?').param_spec
Please investigate if this is regression or expected change
master:
Metadata Update from @mbasti: - Issue assigned to someone - Issue set to the milestone: FreeIPA 4.4.1
Log in to comment on this ticket.