def test_parameter_properties():
 m = MockModel()
 p = m.alpha
 assert (p.name == u'alpha')
 with pytest.raises(AttributeError):
  p.name = u'beta'
 assert (p.fixed is False)
 p.fixed = True
 assert (p.fixed is True)
 assert (p.tied is False)
 p.tied = (lambda _: 0)
 p.tied = False
 assert (p.tied is False)
 assert (p.min is None)
 p.min = 42
 assert (p.min == 42)
 p.min = None
 assert (p.min is None)
 assert (p.max is None)
 p.max = 41
 assert (p.max == 41)

def test_parameter_properties ( ) : m = MockModel ( ) p = m . alpha assert ( p . name == u'alpha' ) with pytest . raises ( AttributeError ) : p . name = u'beta' assert ( p . fixed is False ) p . fixed = True assert ( p . fixed is True ) assert ( p . tied is False ) p . tied = ( lambda _ : 0 ) p . tied = False assert ( p . tied is False ) assert ( p . min is None ) p . min = 42 assert ( p . min == 42 ) p . min = None assert ( p . min is None ) assert ( p . max is None ) p . max = 41 assert ( p . max == 41 )
test if getting / setting of parameter properties works .