#6187 Regression found by test: ipa.test_ipalib.test_parameters.test_create_param
Closed: Fixed None Opened 7 years ago by mbasti.

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:

  • 380ffcc Tests: Fix failing tests in test_ipalib/test_parameters

Metadata Update from @mbasti:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.

Metadata